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

FIX: Typo

parent 4495790b
Branches
Tags
2 merge requests!123REL: Release v0.6.0,!107ENH: setup logging and reporting for serverside execution
Pipeline #35053 passed
...@@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog): ...@@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog):
# test that a bad value for "remove_prefix" leads to runtime error # test that a bad value for "remove_prefix" leads to runtime error
caplog.set_level(logging.DEBUG, logger="caoscrawler.crawl") caplog.set_level(logging.DEBUG, logger="caoscrawler.crawl")
assert 1 = crawler_main( assert 1 == crawler_main(
crawled_directory_path=os.path.join(DATADIR), crawled_directory_path=os.path.join(DATADIR),
cfood_file_name=os.path.join(DATADIR, "cfood.yml"), cfood_file_name=os.path.join(DATADIR, "cfood.yml"),
identifiables_definition_file=os.path.join(DATADIR, "identifiables.yml"), identifiables_definition_file=os.path.join(DATADIR, "identifiables.yml"),
......
...@@ -995,7 +995,7 @@ def test_deprecated_prefix_option(): ...@@ -995,7 +995,7 @@ def test_deprecated_prefix_option():
crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed") crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed")
# Check that crawler main terminates with an error # Check that crawler main terminates with an error
assert 1 = crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed", assert 1 == crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed",
remove_prefix="to/be/removed") remove_prefix="to/be/removed")
with raises(ValueError) as ve: with raises(ValueError) as ve:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment