(pytester: Pytester)
| 1428 | |
| 1429 | |
| 1430 | def test_relpath_rootdir(pytester: Pytester) -> None: |
| 1431 | pytester.makepyfile( |
| 1432 | **{ |
| 1433 | "tests/test_1.py": """ |
| 1434 | import pytest |
| 1435 | @pytest.mark.skip() |
| 1436 | def test_pass(): |
| 1437 | pass |
| 1438 | """, |
| 1439 | } |
| 1440 | ) |
| 1441 | result = pytester.runpytest("-rs", "tests/test_1.py", "--rootdir=tests") |
| 1442 | result.stdout.fnmatch_lines( |
| 1443 | ["SKIPPED [[]1[]] tests/test_1.py:2: unconditional skip"] |
| 1444 | ) |
| 1445 | |
| 1446 | |
| 1447 | def test_skip_using_reason_works_ok(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected