mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
tests for mismatched args
This commit is contained in:
parent
238d3da42e
commit
7b788dec1f
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ def test_locations_arguments_size_mismatch_error():
|
||||||
|
|
||||||
|
|
||||||
def test_locations_no_arguments_error():
|
def test_locations_no_arguments_error():
|
||||||
|
sys.argv = []
|
||||||
with pytest.raises(TypeError) as error:
|
with pytest.raises(TypeError) as error:
|
||||||
perform_test_on_file_expecting_result('check_location_samples/xml/correct_xml.xml', main)
|
perform_test_on_file_expecting_result('check_location_samples/xml/correct_xml.xml', main)
|
||||||
assert "'NoneType' object is not iterable" in str(error.value)
|
assert "'NoneType' object is not iterable" in str(error.value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue