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

Method test_keyword_extra

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

Source from the content-addressed store, hash-verified

843 assert item.name == "test_one"
844
845 def test_keyword_extra(self, pytester: Pytester) -> None:
846 p = pytester.makepyfile(
847 """
848 def test_one():
849 assert 0
850 test_one.mykeyword = True
851 """
852 )
853 reprec = pytester.inline_run("-k", "mykeyword", p)
854 passed, skipped, failed = reprec.countoutcomes()
855 assert failed == 1
856
857 @pytest.mark.xfail
858 def test_keyword_extra_dash(self, pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

countoutcomesMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected