Skip to content

Commit

Permalink
fix fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfink committed Feb 21, 2024
1 parent 18fe136 commit 93c6ad8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/test_detailed_itineraries_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,6 @@ def test_travel_details_between_identical_from_and_to_ids(
detailed_itineraries["from_id"] == detailed_itineraries["to_id"]
].travel_time.max() == datetime.timedelta(seconds=0)

# choose weither to use mph or kmh in the 'expected' data set
# will use kmh if using green paths 2 flavor of r5
detailed_itineraries_car = (
"detailed_itineraries_car_kmh"
if r5_supports_custom_costs()
else "detailed_itineraries_car_mph"
)

@pytest.mark.parametrize(
[
"transport_mode",
Expand All @@ -505,7 +497,11 @@ def test_travel_details_between_identical_from_and_to_ids(
),
(
r5py.TransportMode.CAR,
pytest_lazy_fixtures.lf("detailed_itineraries_car"),
(
pytest_lazy_fixtures.lf("detailed_itineraries_car_kmh")
if r5_supports_custom_costs()
else pytest_lazy_fixtures.lf("detailed_itineraries_car_mph")
),
),
(
r5py.TransportMode.TRANSIT,
Expand Down

0 comments on commit 93c6ad8

Please sign in to comment.