MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_minus_k_dash_is_deprecated

Function test_minus_k_dash_is_deprecated

testing/deprecated_test.py:55–64  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

53
54
55def 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
67def test_minus_k_colon_is_deprecated(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected