From 7b788dec1fd2411d54f71cef83a809e97da9853e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Andr=C3=A9s=20Rodr=C3=ADguez=20Scelza?= Date: Thu, 13 Jun 2019 15:14:31 -0300 Subject: [PATCH] tests for mismatched args --- .../tests/automatic_testing/general_hooks/check_location_test.py | 1 + 1 file changed, 1 insertion(+) 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)