(self, pytester: Pytester)
| 223 | assert _in_venv(base_path) is True |
| 224 | |
| 225 | def test_custom_norecursedirs(self, pytester: Pytester) -> None: |
| 226 | pytester.makeini( |
| 227 | """ |
| 228 | [pytest] |
| 229 | norecursedirs = mydir xyz* |
| 230 | """ |
| 231 | ) |
| 232 | tmp_path = pytester.path |
| 233 | ensure_file(tmp_path / "mydir" / "test_hello.py").write_text( |
| 234 | "def test_1(): pass" |
| 235 | ) |
| 236 | ensure_file(tmp_path / "xyz123" / "test_2.py").write_text("def test_2(): 0/0") |
| 237 | ensure_file(tmp_path / "xy" / "test_ok.py").write_text("def test_3(): pass") |
| 238 | rec = pytester.inline_run() |
| 239 | rec.assertoutcome(passed=1) |
| 240 | rec = pytester.inline_run("xyz123/test_2.py") |
| 241 | rec.assertoutcome(failed=1) |
| 242 | |
| 243 | def test_testpaths_ini(self, pytester: Pytester, monkeypatch: MonkeyPatch) -> None: |
| 244 | pytester.makeini( |
nothing calls this directly
no test coverage detected