(pytester: Pytester)
| 169 | |
| 170 | |
| 171 | def test_mark_on_pseudo_function(pytester: Pytester) -> None: |
| 172 | pytester.makepyfile( |
| 173 | """ |
| 174 | import pytest |
| 175 | |
| 176 | @pytest.mark.r(lambda x: 0/0) |
| 177 | def test_hello(): |
| 178 | pass |
| 179 | """ |
| 180 | ) |
| 181 | reprec = pytester.inline_run() |
| 182 | reprec.assertoutcome(passed=1) |
| 183 | |
| 184 | |
| 185 | @pytest.mark.parametrize("option_name", ["--strict-markers", "--strict"]) |
nothing calls this directly
no test coverage detected