(pytester: Pytester)
| 1445 | |
| 1446 | |
| 1447 | def test_skip_using_reason_works_ok(pytester: Pytester) -> None: |
| 1448 | p = pytester.makepyfile( |
| 1449 | """ |
| 1450 | import pytest |
| 1451 | |
| 1452 | def test_skipping_reason(): |
| 1453 | pytest.skip(reason="skippedreason") |
| 1454 | """ |
| 1455 | ) |
| 1456 | result = pytester.runpytest(p) |
| 1457 | result.stdout.no_fnmatch_line("*PytestDeprecationWarning*") |
| 1458 | result.assert_outcomes(skipped=1) |
| 1459 | |
| 1460 | |
| 1461 | def test_fail_using_reason_works_ok(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected