Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Dec 23, 2024
1 parent 3471d29 commit 533cae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions courses/views/v2/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_get_departments(
) as context:
resp = user_drf_client.get(reverse("v2:departments_api-list"))
duplicate_queries_check(context)
empty_departments_data = resp.json()["results"]
empty_departments_data = resp.json()
assert_drf_json_equal(
empty_departments_data, empty_departments_from_fixture, ignore_order=True
)
Expand All @@ -64,7 +64,7 @@ def test_get_departments(
) as context:
resp = user_drf_client.get(reverse("v2:departments_api-list"))
duplicate_queries_check(context)
departments_data = resp.json()["results"]
departments_data = resp.json()
departments_from_fixture = []
for department in departments:
departments_from_fixture.append( # noqa: PERF401
Expand Down

0 comments on commit 533cae8

Please sign in to comment.