Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CBROWN-ONS committed Nov 17, 2023
1 parent b99b65b commit 549bb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gtfs/test_multi_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_init(self, multi_gtfs_paths):
"""General tests for the constructor."""
m_gtfs = MultiGtfsInstance(multi_gtfs_paths)
assert np.array_equal(
m_gtfs.paths, multi_gtfs_paths
np.sort(m_gtfs.paths), np.sort(multi_gtfs_paths)
), "Paths not as expected"
assert len(m_gtfs.paths) == 2, "Unexpected number of GTFS paths"
assert (
Expand All @@ -92,7 +92,7 @@ def test_save(self, multi_gtfs_paths, tmp_path):
os.path.basename(fpath) for fpath in glob.glob(save_dir + "/*.zip")
]
assert np.array_equal(
expected_paths, found_paths
np.sort(expected_paths), np.sort(found_paths)
), "GtfsInstances not saved as expected"

def test_clean_feed_defences(self, multi_gtfs_fixture):
Expand Down

0 comments on commit 549bb0a

Please sign in to comment.