Skip to content

Commit

Permalink
test: empty shift check
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Nov 29, 2023
1 parent b0fd73a commit 2c5337b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_detailed_view(self):
self.assertEqual(day_shift_row[1], "A") # absent on the 1st day of the month
self.assertEqual(day_shift_row[2], "P") # present on the 2nd day

self.assertEqual(row_without_shift["shift"], None)
self.assertEqual(row_without_shift["shift"], "")
self.assertEqual(row_without_shift[4], "P") # present on the 4th day

# leave should be shown against every shift
Expand Down Expand Up @@ -236,7 +236,7 @@ def test_attendance_with_group_by_filter(self):
self.assertEqual(day_shift_row[1], "A") # absent on the 1st day of the month
self.assertEqual(day_shift_row[2], "P") # present on the 2nd day

self.assertEqual(row_without_shift["shift"], None)
self.assertEqual(row_without_shift["shift"], "")
self.assertEqual(row_without_shift[3], "L") # on leave on the 3rd day
self.assertEqual(row_without_shift[4], "P") # present on the 4th day

Expand Down

0 comments on commit 2c5337b

Please sign in to comment.