From 1b3a394a8bd1bece9383b76fe96d247c6e781a5f Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Tue, 28 Mar 2023 15:33:20 +0200 Subject: [PATCH] FIX: Typo --- integrationtests/test_use_case_simple_presentation.py | 2 +- unittests/test_tool.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrationtests/test_use_case_simple_presentation.py b/integrationtests/test_use_case_simple_presentation.py index 64254661..5f66e6fa 100644 --- a/integrationtests/test_use_case_simple_presentation.py +++ b/integrationtests/test_use_case_simple_presentation.py @@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog): # test that a bad value for "remove_prefix" leads to runtime error caplog.set_level(logging.DEBUG, logger="caoscrawler.crawl") - assert 1 = crawler_main( + assert 1 == crawler_main( crawled_directory_path=os.path.join(DATADIR), cfood_file_name=os.path.join(DATADIR, "cfood.yml"), identifiables_definition_file=os.path.join(DATADIR, "identifiables.yml"), diff --git a/unittests/test_tool.py b/unittests/test_tool.py index a9b8a2ec..b88720f4 100755 --- a/unittests/test_tool.py +++ b/unittests/test_tool.py @@ -995,8 +995,8 @@ def test_deprecated_prefix_option(): crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed") # Check that crawler main terminates with an error - assert 1 = crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed", - remove_prefix="to/be/removed") + assert 1 == crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed", + remove_prefix="to/be/removed") with raises(ValueError) as ve: -- GitLab