(pytester: Pytester)
| 2358 | |
| 2359 | |
| 2360 | def test_via_exec(pytester: Pytester) -> None: |
| 2361 | p1 = pytester.makepyfile("exec('def test_via_exec(): pass')") |
| 2362 | result = pytester.runpytest(str(p1), "-vv") |
| 2363 | result.stdout.fnmatch_lines( |
| 2364 | ["test_via_exec.py::test_via_exec <- <string> PASSED*", "*= 1 passed in *"] |
| 2365 | ) |
| 2366 | |
| 2367 | |
| 2368 | class TestCodeHighlight: |
nothing calls this directly
no test coverage detected