Skip to content

Commit 9d3077e

Browse files
committed
Fix: add type annotations in test to satisfy mypy
1 parent 49cad00 commit 9d3077e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

testing/test_pytest_generate_tests_discovery.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
def test_generate_tests_discovery_in_test_module_and_not_other_hooks(pytester):
1+
from __future__ import annotations
2+
3+
from _pytest.pytester import Pytester
4+
5+
6+
def test_generate_tests_discovery_in_test_module_and_not_other_hooks(
7+
pytester: Pytester,
8+
) -> None:
29
pytester.makepyfile(
310
"""
411
def pytest_generate_tests(metafunc):

0 commit comments

Comments
 (0)