From 93c6ad80b800fcac9d57466d91596463c852ceb5 Mon Sep 17 00:00:00 2001 From: Christoph Fink Date: Wed, 21 Feb 2024 09:44:35 +0100 Subject: [PATCH] fix fixtures --- tests/test_detailed_itineraries_computer.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/test_detailed_itineraries_computer.py b/tests/test_detailed_itineraries_computer.py index c3d2ae06..8f01cbc3 100644 --- a/tests/test_detailed_itineraries_computer.py +++ b/tests/test_detailed_itineraries_computer.py @@ -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", @@ -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,