(pytester: Pytester)
| 1459 | |
| 1460 | |
| 1461 | def test_fail_using_reason_works_ok(pytester: Pytester) -> None: |
| 1462 | p = pytester.makepyfile( |
| 1463 | """ |
| 1464 | import pytest |
| 1465 | |
| 1466 | def test_failing_reason(): |
| 1467 | pytest.fail(reason="failedreason") |
| 1468 | """ |
| 1469 | ) |
| 1470 | result = pytester.runpytest(p) |
| 1471 | result.stdout.no_fnmatch_line("*PytestDeprecationWarning*") |
| 1472 | result.assert_outcomes(failed=1) |
| 1473 | |
| 1474 | |
| 1475 | def test_fail_fails_with_msg_and_reason(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected