Skip to content

Commit

Permalink
Improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
CBROWN-ONS committed Oct 30, 2023
1 parent eb1e7c3 commit 539ff66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/gtfs/test_cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
clean_unrecognised_column_warnings,
clean_duplicate_stop_times,
)
from transport_performance.gtfs.gtfs_utils import _get_validation_warnings
from transport_performance.gtfs.gtfs_utils import (
_get_validation_warnings,
_remove_validation_row,
)


@pytest.fixture(scope="function")
Expand Down Expand Up @@ -468,3 +471,7 @@ def test_clean_duplicate_stop_times_on_pass(self):
assert (
len(gtfs.feed.stop_times.loc[18]) > 0
), "Test case removed from data"

# test return of none when no warnings are found (for cov)
_remove_validation_row(gtfs, message=r".* \(trip_id, departure_time\)")
assert clean_duplicate_stop_times(gtfs) is None

0 comments on commit 539ff66

Please sign in to comment.