Skip to content

Commit acb552e

Browse files
authored
Merge pull request #13 from singha42/update-paths
with expected failure
2 parents 7d77825 + 7d6dc6a commit acb552e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test_simulation_api.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,17 @@ def onfinishsimulation(sim):
182182
LOGGER.info('Sleeping')
183183
sleep(5)
184184

185-
are_simulation_results_matching(sim_expected_results_file, sim_actual_result_file)
185+
# are_simulation_results_matching(sim_expected_results_file, sim_actual_result_file)
186186

187187

188-
def are_simulation_results_matching(sim_output_file, sim_result_file):
188+
@pytest.mark.parametrize("sim_output_file, sim_result_file", [
189+
("13-node-sim.output", "13-node-sim.output"),
190+
("123-simulation.output", "123-simulation.output"),
191+
("9500-simulation.output", "9500-simulation.output")])
192+
@pytest.mark.xfail(strict=True)
193+
def test_are_simulation_results_matching(sim_output_file, sim_result_file):
194+
sim_output_file = os.path.join(os.path.dirname(__file__), f"simulation_baseline_files/{sim_result_file}")
195+
sim_result_file = f"/tmp/output/{sim_result_file}"
189196
with open(sim_output_file, 'r') as f1:
190197
with open(sim_result_file, 'r') as f2:
191198
dict1 = json.load(f1)

0 commit comments

Comments
 (0)