(pytester: Pytester)
| 264 | |
| 265 | |
| 266 | def test_exclude(pytester: Pytester) -> None: |
| 267 | hellodir = pytester.mkdir("hello") |
| 268 | hellodir.joinpath("test_hello.py").write_text("x y syntaxerror") |
| 269 | hello2dir = pytester.mkdir("hello2") |
| 270 | hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror") |
| 271 | pytester.makepyfile(test_ok="def test_pass(): pass") |
| 272 | result = pytester.runpytest("--ignore=hello", "--ignore=hello2") |
| 273 | assert result.ret == 0 |
| 274 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 275 | |
| 276 | |
| 277 | def test_exclude_glob(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected