mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Merge branch 'detects-print-as-debug-statement' of github.com:AadityaSubedi/pre-commit-hooks into detects-print-as-debug-statement
This commit is contained in:
commit
4e26f3a9ea
1 changed files with 3 additions and 3 deletions
|
|
@ -30,9 +30,9 @@ def test_finds_breakpoint():
|
|||
visitor = DebugStatementParser()
|
||||
visitor.visit(ast.parse('breakpoint()'))
|
||||
assert visitor.breakpoints == [Debug(1, 0, 'breakpoint', 'called')]
|
||||
|
||||
|
||||
def test_finds_print():
|
||||
|
||||
|
||||
def test_finds_print():
|
||||
visitor = DebugStatementParser()
|
||||
visitor.visit(ast.parse('print()'))
|
||||
assert visitor.breakpoints == [Debug(1, 0, 'print', 'called')]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue