(self, pytester: Pytester)
| 1251 | |
| 1252 | class TestBooleanCondition: |
| 1253 | def test_skipif(self, pytester: Pytester) -> None: |
| 1254 | pytester.makepyfile( |
| 1255 | """ |
| 1256 | import pytest |
| 1257 | @pytest.mark.skipif(True, reason="True123") |
| 1258 | def test_func1(): |
| 1259 | pass |
| 1260 | @pytest.mark.skipif(False, reason="True123") |
| 1261 | def test_func2(): |
| 1262 | pass |
| 1263 | """ |
| 1264 | ) |
| 1265 | result = pytester.runpytest() |
| 1266 | result.stdout.fnmatch_lines( |
| 1267 | """ |
| 1268 | *1 passed*1 skipped* |
| 1269 | """ |
| 1270 | ) |
| 1271 | |
| 1272 | def test_skipif_noreason(self, pytester: Pytester) -> None: |
| 1273 | pytester.makepyfile( |
nothing calls this directly
no test coverage detected