From a955a36dcc8eb9a0e09b97623fe4cb870d4ed332 Mon Sep 17 00:00:00 2001 From: marcosmc Date: Mon, 16 Dec 2024 12:29:59 +0100 Subject: [PATCH] Debug test --- tests/dgcv/test_tool.py | 2 -- tests/dgcv/validation/test_sanity_checks.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/dgcv/test_tool.py b/tests/dgcv/test_tool.py index 7a61c32..c432dae 100644 --- a/tests/dgcv/test_tool.py +++ b/tests/dgcv/test_tool.py @@ -50,8 +50,6 @@ def _execute_tool(producer_model, producer_curves, reference_curves): md = ModelValidation(ep) compliance = md.validate(True) - except Exception as e: - compliance = str(e) finally: shutil.rmtree(output_dir) return compliance diff --git a/tests/dgcv/validation/test_sanity_checks.py b/tests/dgcv/validation/test_sanity_checks.py index 5df64a2..37986bb 100644 --- a/tests/dgcv/validation/test_sanity_checks.py +++ b/tests/dgcv/validation/test_sanity_checks.py @@ -146,7 +146,7 @@ def test_launchers(): with pytest.raises(OSError) as pytest_wrapped_e: sanity_checks.check_launchers("dynawo.sh") assert pytest_wrapped_e.type == OSError - assert pytest_wrapped_e.value.args[0] == "Dynawo not found.\n" + assert pytest_wrapped_e.value.args[0] == "Dynawo not found.\nPdfLatex not found.\n" def test_curves_file():