Skip to content

Commit

Permalink
unit test update
Browse files Browse the repository at this point in the history
  • Loading branch information
valentijnscholten committed Jan 31, 2025
1 parent c01d11b commit 9ebf184
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions unittests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ def test_counters_as_staff(self):

response = self._request("admin")

# temp code to update unit tests
print(response.context["mitigated_count"]) # noqa: T201
print(response.context["accepted_count"]) # noqa: T201

self.assertEqual(3, response.context["engagement_count"])
self.assertEqual(4, response.context["finding_count"])
self.assertEqual(11, response.context["finding_count"])
self.assertEqual(2, response.context["mitigated_count"])
self.assertEqual(2, response.context["accepted_count"])

Expand All @@ -127,8 +131,12 @@ def test_counters_as_user(self):

response = self._request("user1")

# temp code to update unit tests
print(response.context["mitigated_count"]) # noqa: T201
print(response.context["accepted_count"]) # noqa: T201

self.assertEqual(3, response.context["engagement_count"])
self.assertEqual(4, response.context["finding_count"])
self.assertEqual(11, response.context["finding_count"])
self.assertEqual(2, response.context["mitigated_count"])
self.assertEqual(2, response.context["accepted_count"])

Expand Down

0 comments on commit 9ebf184

Please sign in to comment.