mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-01 02:56:52 +00:00
add --pytest-test-first convention
This commit is contained in:
parent
621f50e155
commit
412564fa95
4 changed files with 35 additions and 9 deletions
|
|
@ -43,3 +43,8 @@ def test_main_not_django_fails():
|
|||
def test_main_django_fails():
|
||||
ret = main(['--django', 'foo_test.py', 'test_bar.py', 'test_baz.py'])
|
||||
assert ret == 1
|
||||
|
||||
|
||||
def test_main_pytest_test_first():
|
||||
assert main(['--pytest-test-first', 'test_foo.py']) == 0
|
||||
assert main(['--pytest-test-first', 'foo_test.py']) == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue