Skip to content
Snippets Groups Projects
Commit b3fb537f authored by Daniel CARRON's avatar Daniel CARRON :b: Committed by André Anjos
Browse files

[test] Update paths

parent 71d129d4
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ def experiment(
ctx.invoke(
evaluate,
predictions=predictions_output,
output=output_folder,
output_folder=output_folder,
threshold="validation",
)
......
......@@ -404,23 +404,24 @@ def test_evaluate_pasa_montgomery(temporary_basedir):
with stdout_logging() as buf:
prediction_path = temporary_basedir / "predictions.json"
output_path = temporary_basedir / "evaluation.json"
evaluation_filename = "evaluation.json"
evaluation_file = temporary_basedir / evaluation_filename
result = runner.invoke(
evaluate,
[
"-vv",
"montgomery",
f"--predictions={str(prediction_path)}",
f"--output={str(output_path)}",
f"--output-folder={str(temporary_basedir)}",
"--threshold=test",
],
)
_assert_exit_0(result)
assert output_path.exists()
assert output_path.with_suffix(".meta.json").exists()
assert output_path.with_suffix(".rst").exists()
assert output_path.with_suffix(".pdf").exists()
assert evaluation_file.exists()
assert evaluation_file.with_suffix(".meta.json").exists()
assert evaluation_file.with_suffix(".rst").exists()
assert evaluation_file.with_suffix(".pdf").exists()
keywords = {
r"^Setting --threshold=.*$": 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment