diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_location_test.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_location_test.py index 7d0c0fb..0f5f78c 100644 --- a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_location_test.py +++ b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/general_hooks/check_location_test.py @@ -57,6 +57,7 @@ def test_locations_arguments_size_mismatch_error(): def test_locations_no_arguments_error(): + sys.argv = [] with pytest.raises(TypeError) as error: perform_test_on_file_expecting_result('check_location_samples/xml/correct_xml.xml', main) assert "'NoneType' object is not iterable" in str(error.value)