From 872e1d64c703f3dda4303860ba77060e1b3a65bf Mon Sep 17 00:00:00 2001 From: David Beal Date: Mon, 19 Aug 2024 12:30:54 +0200 Subject: [PATCH] [REF][16.0] hr_timesheet_sheet: separate class for setUpClass --- hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py b/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py index 3404dba80..26a00797a 100644 --- a/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py +++ b/hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py @@ -14,7 +14,7 @@ from ..models.hr_timesheet_sheet import empty_name -class TestHrTimesheetSheet(TransactionCase): +class TestHrTimesheetSheetCommon(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -233,6 +233,8 @@ def setUpClass(cls): } ) + +class TestHrTimesheetSheet(TestHrTimesheetSheetCommon): def test_0(self): sheet_form = Form(self.sheet_model.with_user(self.user)) self.assertEqual(len(sheet_form.line_ids), 0)