Skip to content

Commit 43865ed

Browse files
committed
Pass tests directory explicitly
1 parent e2ec64e commit 43865ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testing/test_collect_imported_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ def test_collect_imports_disabled(pytester: Pytester) -> None:
4949
pytester.makeini(
5050
"""
5151
[pytest]
52-
testpaths = "tests"
5352
collect_imported_tests = false
5453
"""
5554
)
5655

5756
setup_import_class_test(pytester)
58-
result = pytester.runpytest("-v")
57+
result = pytester.runpytest("-v", "tests")
5958
result.stdout.fnmatch_lines(
6059
[
6160
"tests/foo_test.py::TestDomain::test PASSED*",
@@ -93,7 +92,7 @@ def test_collect_imports_enabled(pytester: Pytester, configure_ini: bool) -> Non
9392
)
9493

9594
setup_import_class_test(pytester)
96-
result = pytester.runpytest("-v")
95+
result = pytester.runpytest("-v", "tests")
9796
result.stdout.fnmatch_lines(
9897
[
9998
"tests/foo_test.py::Testament::test_collections PASSED*",

0 commit comments

Comments
 (0)