mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-03 18:56:54 +00:00
add unit test for correct regex
This commit is contained in:
parent
612a4b18cf
commit
3724c8f668
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue