Skip to content

Commit

Permalink
Mime types test case fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiDiwanTT committed Sep 14, 2023
1 parent bef06fe commit 886380f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/feed/test_opds_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def test_get_serializer(self):
)
assert isinstance(get_serializer(request.accept_mimetypes), OPDS1Serializer)

# Same q-values respect order fo arrival
# Same q-values respect order of definition in the code
request = Request.from_values(
headers=dict(
Accept="application/opds+json;q=0.9,application/atom+xml;q=0.9"
)
)
assert isinstance(get_serializer(request.accept_mimetypes), OPDS2Serializer)
assert isinstance(get_serializer(request.accept_mimetypes), OPDS1Serializer)

# No valid accept mimetype should default to OPDS1.x
request = Request.from_values(headers=dict(Accept="text/html"))
Expand Down

0 comments on commit 886380f

Please sign in to comment.