(pytester: Pytester)
| 53 | |
| 54 | |
| 55 | def test_minus_k_dash_is_deprecated(pytester: Pytester) -> None: |
| 56 | threepass = pytester.makepyfile( |
| 57 | test_threepass=""" |
| 58 | def test_one(): assert 1 |
| 59 | def test_two(): assert 1 |
| 60 | def test_three(): assert 1 |
| 61 | """ |
| 62 | ) |
| 63 | result = pytester.runpytest("-k=-test_two", threepass) |
| 64 | result.stdout.fnmatch_lines(["*The `-k '-expr'` syntax*deprecated*"]) |
| 65 | |
| 66 | |
| 67 | def test_minus_k_colon_is_deprecated(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected