(pytester: Pytester)
| 832 | |
| 833 | |
| 834 | def test_makereport_getsource(pytester: Pytester) -> None: |
| 835 | pytester.makepyfile( |
| 836 | """ |
| 837 | def test_foo(): |
| 838 | if False: pass |
| 839 | else: assert False |
| 840 | """ |
| 841 | ) |
| 842 | result = pytester.runpytest() |
| 843 | result.stdout.no_fnmatch_line("*INTERNALERROR*") |
| 844 | result.stdout.fnmatch_lines(["*else: assert False*"]) |
| 845 | |
| 846 | |
| 847 | def test_makereport_getsource_dynamic_code( |
nothing calls this directly
no test coverage detected