(self, pytester: Pytester)
| 961 | |
| 962 | @pytest.fixture |
| 963 | def verbose_testfile(self, pytester: Pytester) -> Path: |
| 964 | return pytester.makepyfile( |
| 965 | """ |
| 966 | import pytest |
| 967 | def test_fail(): |
| 968 | raise ValueError() |
| 969 | def test_pass(): |
| 970 | pass |
| 971 | class TestClass(object): |
| 972 | def test_skip(self): |
| 973 | pytest.skip("hello") |
| 974 | def test_gen(): |
| 975 | def check(x): |
| 976 | assert x == 1 |
| 977 | yield check, 0 |
| 978 | """ |
| 979 | ) |
| 980 | |
| 981 | def test_verbose_reporting(self, verbose_testfile, pytester: Pytester) -> None: |
| 982 | result = pytester.runpytest( |
nothing calls this directly
no test coverage detected