(pytester: Pytester)
| 819 | |
| 820 | |
| 821 | def test_failure_in_setup(pytester: Pytester) -> None: |
| 822 | pytester.makepyfile( |
| 823 | """ |
| 824 | def setup_module(): |
| 825 | 0/0 |
| 826 | def test_func(): |
| 827 | pass |
| 828 | """ |
| 829 | ) |
| 830 | result = pytester.runpytest("--tb=line") |
| 831 | result.stdout.no_fnmatch_line("*def setup_module*") |
| 832 | |
| 833 | |
| 834 | def test_makereport_getsource(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected