(
expr: str, expected_passed: list[str | None], pytester: Pytester
)
| 230 | ], |
| 231 | ) |
| 232 | def test_mark_option( |
| 233 | expr: str, expected_passed: list[str | None], pytester: Pytester |
| 234 | ) -> None: |
| 235 | pytester.makepyfile( |
| 236 | """ |
| 237 | import pytest |
| 238 | @pytest.mark.xyz |
| 239 | def test_one(): |
| 240 | pass |
| 241 | @pytest.mark.xyz2 |
| 242 | def test_two(): |
| 243 | pass |
| 244 | """ |
| 245 | ) |
| 246 | rec = pytester.inline_run("-m", expr) |
| 247 | passed, _skipped, _fail = rec.listoutcomes() |
| 248 | passed_str = [x.nodeid.split("::")[-1] for x in passed] |
| 249 | assert passed_str == expected_passed |
| 250 | |
| 251 | |
| 252 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected