(pytester: Pytester)
| 123 | |
| 124 | |
| 125 | def test_marker_without_description(pytester: Pytester) -> None: |
| 126 | pytester.makefile( |
| 127 | ".cfg", |
| 128 | setup=""" |
| 129 | [tool:pytest] |
| 130 | markers=slow |
| 131 | """, |
| 132 | ) |
| 133 | pytester.makeconftest( |
| 134 | """ |
| 135 | import pytest |
| 136 | pytest.mark.xfail('FAIL') |
| 137 | """ |
| 138 | ) |
| 139 | ftdir = pytester.mkdir("ft1_dummy") |
| 140 | pytester.path.joinpath("conftest.py").replace(ftdir.joinpath("conftest.py")) |
| 141 | rec = pytester.runpytest("--strict-markers") |
| 142 | rec.assert_outcomes() |
| 143 | |
| 144 | |
| 145 | def test_markers_option_with_plugin_in_current_dir(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected