(pytester: Pytester)
| 642 | |
| 643 | |
| 644 | def test_conftest_exception_handling(pytester: Pytester) -> None: |
| 645 | pytester.makeconftest( |
| 646 | """\ |
| 647 | raise ValueError() |
| 648 | """ |
| 649 | ) |
| 650 | pytester.makepyfile( |
| 651 | """\ |
| 652 | def test_some(): |
| 653 | pass |
| 654 | """ |
| 655 | ) |
| 656 | res = pytester.runpytest() |
| 657 | assert res.ret == 4 |
| 658 | assert "raise ValueError()" in [line.strip() for line in res.errlines] |
| 659 | |
| 660 | |
| 661 | def test_hook_proxy(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected