Skip to content

Commit

Permalink
redefined-outer-name: Add one more test case
Browse files Browse the repository at this point in the history
Write the positive test of `redefined-outer-name`
(#70)

Signed-off-by: Stavros Ntentos <[email protected]>
  • Loading branch information
stdedos committed Jul 13, 2024
1 parent 91941f9 commit 9e899ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/input/redefined-outer-name/caller_not_a_test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ def this_is_a_fixture():
def not_a_test_function(this_is_a_fixture):
# invalid test case...
assert True


def test_function_valid(this_is_a_fixture):
assert True
2 changes: 1 addition & 1 deletion tests/test_redefined_outer_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_caller_yield_fixture(self, enable_plugin):
@pytest.mark.parametrize("enable_plugin", [True, False])
def test_caller_not_a_test_func(self, enable_plugin):
self.run_linter(enable_plugin)
self.verify_messages(1)
self.verify_messages(1 if enable_plugin else 2)

@pytest.mark.parametrize("enable_plugin", [True, False])
def test_args_and_kwargs(self, enable_plugin):
Expand Down

0 comments on commit 9e899ef

Please sign in to comment.