Skip to content

Commit

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

from django.db.models.manager import BaseManager
from rest_framework.exceptions import ValidationError
from rest_framework.filters import SearchFilter
from rest_framework.pagination import PageNumberPagination
Expand Down Expand Up @@ -155,8 +154,8 @@ class OrderedContentSetViewSet(BaseAPIViewSet):
filter_backends = (SearchFilter,)

def get_queryset(self):
#TODO: Filter using the qa Param
#qa = self.request.query_params.get("qa")
# TODO: Filter using the qa Param
# qa = self.request.query_params.get("qa")

queryset = OrderedContentSet.objects.all()
return queryset
Expand Down
4 changes: 3 additions & 1 deletion home/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ def test_orderedcontent_endpoint_without_drafts(self, uclient):

# the content set is not live but content is returned
assert not self.ordered_content_set.live
assert content["count"] == 2 #TODO: Change this when we add support for qa param
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]["profile_fields"][0] == {
"profile_field": "gender",
Expand Down

0 comments on commit 94d9078

Please sign in to comment.