Skip to content

Commit

Permalink
Fix overdrive file loading (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen authored Apr 18, 2024
1 parent b40913b commit 6e0ba13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/api/test_overdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2188,8 +2188,9 @@ def test_no_drm_fulfillment(self, overdrive_api_fixture: OverdriveAPIFixture):
od_api._server_nickname = OverdriveConstants.TESTING_SERVERS

# Load the mock API data
with open("tests/api/files/overdrive/no_drm_fulfill.json") as fp:
api_data = json.load(fp)
api_data = json.loads(
overdrive_api_fixture.data.sample_data("no_drm_fulfill.json")
)

# Mock out the flow
od_api.get_loan = MagicMock(return_value=api_data["loan"])
Expand Down

0 comments on commit 6e0ba13

Please sign in to comment.