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

Method test_keyword_extra_dash

testing/test_mark.py:858–870  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

856
857 @pytest.mark.xfail
858 def test_keyword_extra_dash(self, pytester: Pytester) -> None:
859 p = pytester.makepyfile(
860 """
861 def test_one():
862 assert 0
863 test_one.mykeyword = True
864 """
865 )
866 # with argparse the argument to an option cannot
867 # start with '-'
868 reprec = pytester.inline_run("-k", "-mykeyword", p)
869 passed, skipped, failed = reprec.countoutcomes()
870 assert passed + skipped + failed == 0
871
872 @pytest.mark.parametrize(
873 "keyword",

Callers

nothing calls this directly

Calls 3

countoutcomesMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected