Skip to content

Commit

Permalink
[REF][16.0] hr_timesheet_sheet: separate class for setUpClass
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Aug 19, 2024
1 parent d9de684 commit 872e1d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hr_timesheet_sheet/tests/test_hr_timesheet_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ..models.hr_timesheet_sheet import empty_name


class TestHrTimesheetSheet(TransactionCase):
class TestHrTimesheetSheetCommon(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 872e1d6

Please sign in to comment.