mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-26 18:10:18 +08:00
add unit test for correct regex
This commit is contained in:

committed by
Anthony Sottile

parent
612a4b18cf
commit
3724c8f668
@ -11,6 +11,10 @@ def test_main_one_fails():
|
||||
assert ret == 1
|
||||
|
||||
|
||||
def test_regex():
|
||||
assert main(('foo_test_py',)) == 1
|
||||
|
||||
|
||||
def test_main_django_all_pass():
|
||||
ret = main((
|
||||
'--django', 'tests.py', 'test_foo.py', 'test_bar.py',
|
||||
|
Reference in New Issue
Block a user