Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Vermeulen committed Feb 15, 2024
1 parent 94d9078 commit c7c61c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion home/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from rest_framework.exceptions import ValidationError
from rest_framework.filters import SearchFilter
from rest_framework.pagination import PageNumberPagination
Expand Down
6 changes: 3 additions & 3 deletions home/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ def create_test_data(self):
self.ordered_content_set.save()
# self.ordered_content_set.save_revision().publish()

self.ordered_content_set_timed = OrderedContentSet(name="Test set timed")
self.ordered_content_set_timed = OrderedContentSet(name="Test set")
self.ordered_content_set_timed.pages.append(
(
"pages",
Expand Down Expand Up @@ -647,7 +647,7 @@ def test_orderedcontent_endpoint_without_drafts(self, uclient):
assert (
content["count"] == 2
) # TODO: Change this when we add support for qa param
assert content["results"][0]["name"] == self.ordered_content_set.name
assert content["results"][0]["name"] == self.ordered_content_set_timed.name
assert content["results"][0]["profile_fields"][0] == {
"profile_field": "gender",
"value": "female",
Expand Down Expand Up @@ -700,7 +700,7 @@ def test_orderedcontent_new_draft(self, uclient):

assert content["count"] == 2
assert len(content["results"][0]["profile_fields"]) == 1
assert content["results"][0]["name"] == self.ordered_content_set.name
assert content["results"][0]["name"] == self.ordered_content_set_timed.name
assert content["results"][0]["profile_fields"][0] == {
"profile_field": "gender",
"value": "female",
Expand Down

0 comments on commit c7c61c7

Please sign in to comment.