Files
Odoo-18.0-20251222/base_time_window/tests/test_time_weekday.py
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

17 lines
533 B
Python
Executable File

# Copyright 2024 sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestTimeWeekday(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.time_weekday = cls.env["time.weekday"]
cls.time_weekday_saturday = cls.time_weekday.search([("name", "=", "5")])
def test_weekday_delete(cls):
cls.time_weekday._get_id_by_name(cls.time_weekday_saturday.name)
cls.time_weekday_saturday.unlink()