Skip to content

Commit

Permalink
Fix reference to expected test data file
Browse files Browse the repository at this point in the history
  • Loading branch information
nikki-t committed Jun 11, 2024
1 parent 0e505ae commit b437341
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/unit/test_services.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import json
import os.path
import pathlib
import unittest

import earthaccess
Expand Down Expand Up @@ -34,7 +36,10 @@ def test_services(self):
)
actual = query.get(query.hits())

with open("tests/unit/fixtures/S2004184019-POCLOUD.json") as jf:
expected_file = pathlib.Path(
os.path.dirname(os.path.realpath(__file__))
).joinpath("fixtures/S2004184019-POCLOUD.json")
with open(expected_file) as jf:
expected = json.load(jf)

self.assertTrue(
Expand Down

0 comments on commit b437341

Please sign in to comment.