Skip to content
Snippets Groups Projects
Commit e12ede01 authored by florian's avatar florian
Browse files

TST: Test error message

parent 68b91790
No related branches found
No related tags found
2 merge requests!105REL: v0.4.0,!101ENH: add the 'add_prefix' argument
Pipeline #34100 failed
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment