Skip to content

Commit

Permalink
test: consider None values while testing group by filter
Browse files Browse the repository at this point in the history
(cherry picked from commit 4d9bcfb)
  • Loading branch information
krantheman authored and mergify[bot] committed Sep 13, 2024
1 parent 00e57e1 commit 0e22d20
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ def test_attendance_with_group_by_filter(self):
mark_attendance(self.employee, previous_month_first + relativedelta(days=2), "On Leave")
mark_attendance(self.employee, previous_month_first + relativedelta(days=3), "Present")

departmentless_employee = make_employee(
"[email protected]", company=self.company, department=None
)
mark_attendance(departmentless_employee, previous_month_first + relativedelta(days=3), "Present")

filters = frappe._dict(
{
"month": previous_month_first.month,
Expand Down

0 comments on commit 0e22d20

Please sign in to comment.