Skip to content

Commit

Permalink
test: Refactor tests dependent on PKG_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
r-leyshon committed Jul 3, 2024
1 parent 9670407 commit 084fbef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_lookup_is_stable(self):
"""Check if the tables at the urls have changed content."""
# import the expected fixtures
lookup_fix = pd.read_pickle(
os.path.join(PKG_PATH, "data", "gtfs", "route_lookup.pkl")
os.path.join(PKG_PATH, "data", "route_lookup.pkl")
)
lookup = scrape_route_type_lookup()
pd.testing.assert_frame_equal(lookup, lookup_fix)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_init_on_pass(self):
with_pth = GtfsInstance(
gtfs_pth=GTFS_FIX_PTH,
route_lookup_pth=(
os.path.join(PKG_PATH, "data", "gtfs", "route_lookup.pkl")
os.path.join(PKG_PATH, "data", "route_lookup.pkl")
),
).ROUTE_LKP
assert (
Expand Down

0 comments on commit 084fbef

Please sign in to comment.