(pytester: Pytester)
| 966 | |
| 967 | |
| 968 | def test_skipif_class(pytester: Pytester) -> None: |
| 969 | p = pytester.makepyfile( |
| 970 | """ |
| 971 | import pytest |
| 972 | |
| 973 | class TestClass(object): |
| 974 | pytestmark = pytest.mark.skipif("True") |
| 975 | def test_that(self): |
| 976 | assert 0 |
| 977 | def test_though(self): |
| 978 | assert 0 |
| 979 | """ |
| 980 | ) |
| 981 | result = pytester.runpytest(p) |
| 982 | result.stdout.fnmatch_lines(["*2 skipped*"]) |
| 983 | |
| 984 | |
| 985 | def test_skipped_reasons_functional(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected