From 6e0ba13a8f2bae618fbfe7154a20a0a0ebdd1c82 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Thu, 18 Apr 2024 14:54:37 -0300 Subject: [PATCH] Fix overdrive file loading (#1797) --- tests/api/test_overdrive.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/api/test_overdrive.py b/tests/api/test_overdrive.py index 5c5367e085..a29d3cbba4 100644 --- a/tests/api/test_overdrive.py +++ b/tests/api/test_overdrive.py @@ -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"])