Skip to content

Commit

Permalink
test: add test for #17 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 3, 2023
1 parent 9a45e63 commit 2834250
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/checkers/test_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from textwrap import dedent


def test_checker_unknown_call(helpers):
"""
When the function call is not recognized, no error is raised from `Checker`.
"""
sample_code = """
class Model():
_normalize_title = whatever()()
"""
assert helpers.results(dedent(sample_code)) == set()

0 comments on commit 2834250

Please sign in to comment.