Skip to content

Commit 2a288fc

Browse files
committed
adds test for broken path
1 parent 0c0fce3 commit 2a288fc

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

elara/benchmarking.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,13 +1384,12 @@ class BenchmarkWorkStation(WorkStation):
13841384
# "london_northern_screen": LondonNorthScreen,
13851385
# "london_peripheral_screen": LondonPeriphScreen,
13861386

1387+
# old style:
13871388
"test_pt_interaction_counter": TestPTInteraction,
13881389
"test_town_highways": TestHighwayCounters,
13891390
"squeeze_town_highways": SqueezeTownHighwayCounters,
13901391
"multimodal_town_modeshare": MultimodalTownModeShare,
13911392
"multimodal_town_cars_counts": MultimodalTownCarCounters,
1392-
# "ireland_highways": IrelandHighwayCounters, # replaced with new
1393-
# "london_inner_cordon_car": LondonInnerCordonCar,
13941393
"dublin_canal_cordon_car": DublinCanalCordonCar,
13951394
"ireland_commuter_modeshare": IrelandCommuterStats,
13961395
"test_link_cordon": TestCordon,
@@ -1417,8 +1416,6 @@ class BenchmarkWorkStation(WorkStation):
14171416
"squeeze_town_highways": 1,
14181417
"multimodal_town_modeshare": 1,
14191418
"multimodal_town_cars_counts": 1,
1420-
# "ireland_highways": 1, # replaced with new
1421-
# "london_inner_cordon_car": 1,
14221419
"dublin_canal_cordon_car": 1,
14231420
"ireland_commuter_modeshare": 1,
14241421
"test_town_cordon": 1,

tests/test_5_benchmark.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,11 @@ def test_benchmark_workstation_with_link_bms(test_config, test_paths):
180180

181181
pp_workstation.build(write_path=test_outputs)
182182

183+
184+
def test_all_paths_exist(test_config):
185+
benchmark_workstation = benchmarking.BenchmarkWorkStation(test_config)
186+
for name, tool in benchmark_workstation.tools.items():
187+
try:
188+
assert os.path.exists(tool.benchmark_data_path)
189+
except AttributeError:
190+
continue

0 commit comments

Comments
 (0)