(pytester: Pytester)
| 63 | |
| 64 | |
| 65 | def test_ini_markers(pytester: Pytester) -> None: |
| 66 | pytester.makeini( |
| 67 | """ |
| 68 | [pytest] |
| 69 | markers = |
| 70 | a1: this is a webtest marker |
| 71 | a2: this is a smoke marker |
| 72 | """ |
| 73 | ) |
| 74 | pytester.makepyfile( |
| 75 | """ |
| 76 | def test_markers(pytestconfig): |
| 77 | markers = pytestconfig.getini("markers") |
| 78 | print(markers) |
| 79 | assert len(markers) >= 2 |
| 80 | assert markers[0].startswith("a1:") |
| 81 | assert markers[1].startswith("a2:") |
| 82 | """ |
| 83 | ) |
| 84 | rec = pytester.inline_run() |
| 85 | rec.assertoutcome(passed=1) |
| 86 | |
| 87 | |
| 88 | def test_markers_option(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected