From e12ede012a30f5a4468c4cd926126fe6a790e6e2 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 27 Feb 2023 10:59:55 +0100 Subject: [PATCH] TST: Test error message --- unittests/test_tool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unittests/test_tool.py b/unittests/test_tool.py index afb12a6b..e8bf23cf 100755 --- a/unittests/test_tool.py +++ b/unittests/test_tool.py @@ -989,7 +989,9 @@ def test_wrong_remove_prefix_option(): with a bad value raises the correct error. """ - with raises(RuntimeError) as ve: + with raises(RuntimeError) as re: crawler_main(rfp("test_directories", "examples_article"), rfp("scifolder_extended.yml"), remove_prefix="to/be/removed") + + assert "path does not start with the prefix" in str(re.value) -- GitLab