Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Nov 4, 2024
1 parent a9a99a3 commit 9600bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/manager/api/controller/test_loan.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def verify_and_get_single_entry_feed_links(self, response):
if self.expected_content_type == OPDSFeed.ENTRY_TYPE:
feed = feedparser.parse(response.get_data())
[entry] = feed["entries"]
elif self.expected_content_type == OPDS2Version1Serializer.CONTENT_TYPE:
elif self.expected_content_type == OPDS2Serializer.CONTENT_TYPE:
entry = response.get_json()
else:
assert (
Expand Down
4 changes: 3 additions & 1 deletion tests/manager/api/controller/test_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,9 @@ def test_related_books(self, work_fixture: WorkFixture):
novelist_api=mock_api,
)
assert 200 == response.status_code
assert OPDSFeed.ACQUISITION_FEED_TYPE == response.headers["content-type"]
assert OPDSFeed.ACQUISITION_FEED_TYPE.startswith(
response.headers["content-type"]
)
feed = feedparser.parse(response.data)
assert "Related Books" == feed["feed"]["title"]

Expand Down

0 comments on commit 9600bc1

Please sign in to comment.