Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
27cd5628db
commit
6bd375ed5f
108 changed files with 6514 additions and 0 deletions
14
tests/check_ast_test.py
Normal file
14
tests/check_ast_test.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from pre_commit_hooks.check_ast import main
|
||||
from testing.util import get_resource_path
|
||||
|
||||
|
||||
def test_failing_file():
|
||||
ret = main([get_resource_path('cannot_parse_ast.notpy')])
|
||||
assert ret == 1
|
||||
|
||||
|
||||
def test_passing_file():
|
||||
ret = main([__file__])
|
||||
assert ret == 0
|
Loading…
Add table
Add a link
Reference in a new issue