(pytester: Pytester)
| 102 | |
| 103 | |
| 104 | def test_ini_markers_whitespace(pytester: Pytester) -> None: |
| 105 | pytester.makeini( |
| 106 | """ |
| 107 | [pytest] |
| 108 | markers = |
| 109 | a1 : this is a whitespace marker |
| 110 | """ |
| 111 | ) |
| 112 | pytester.makepyfile( |
| 113 | """ |
| 114 | import pytest |
| 115 | |
| 116 | @pytest.mark.a1 |
| 117 | def test_markers(): |
| 118 | assert True |
| 119 | """ |
| 120 | ) |
| 121 | rec = pytester.inline_run("--strict-markers", "-m", "a1") |
| 122 | rec.assertoutcome(passed=1) |
| 123 | |
| 124 | |
| 125 | def test_marker_without_description(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected