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

[test] Update paths

parent 0e198fc4
No related branches found
No related tags found
1 merge request!31Experiment and model upload to GitLab via MLflow interface
...@@ -141,7 +141,7 @@ def experiment( ...@@ -141,7 +141,7 @@ def experiment(
ctx.invoke( ctx.invoke(
evaluate, evaluate,
predictions=predictions_output, predictions=predictions_output,
output=output_folder, output_folder=output_folder,
threshold="validation", threshold="validation",
) )
......
...@@ -404,23 +404,24 @@ def test_evaluate_pasa_montgomery(temporary_basedir): ...@@ -404,23 +404,24 @@ def test_evaluate_pasa_montgomery(temporary_basedir):
with stdout_logging() as buf: with stdout_logging() as buf:
prediction_path = temporary_basedir / "predictions.json" 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( result = runner.invoke(
evaluate, evaluate,
[ [
"-vv", "-vv",
"montgomery", "montgomery",
f"--predictions={str(prediction_path)}", f"--predictions={str(prediction_path)}",
f"--output={str(output_path)}", f"--output-folder={str(temporary_basedir)}",
"--threshold=test", "--threshold=test",
], ],
) )
_assert_exit_0(result) _assert_exit_0(result)
assert output_path.exists() assert evaluation_file.exists()
assert output_path.with_suffix(".meta.json").exists() assert evaluation_file.with_suffix(".meta.json").exists()
assert output_path.with_suffix(".rst").exists() assert evaluation_file.with_suffix(".rst").exists()
assert output_path.with_suffix(".pdf").exists() assert evaluation_file.with_suffix(".pdf").exists()
keywords = { keywords = {
r"^Setting --threshold=.*$": 1, r"^Setting --threshold=.*$": 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment