From 084fbefc8818df34f4794b136b42bdc5ac31d3f6 Mon Sep 17 00:00:00 2001 From: r-leyshon Date: Wed, 3 Jul 2024 15:23:40 +0100 Subject: [PATCH] test: Refactor tests dependent on PKG_PATH --- tests/test_routes.py | 2 +- tests/test_validation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_routes.py b/tests/test_routes.py index 6e2a13e..cb3cb14 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -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) diff --git a/tests/test_validation.py b/tests/test_validation.py index 7003c78..94ed676 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -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 (