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

Method test_issue345

testing/test_collection.py:814–825  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

812 assert modcol.name in repr(modcol.keywords)
813
814 def test_issue345(self, pytester: Pytester) -> None:
815 pytester.makepyfile(
816 """
817 def test_should_not_be_selected():
818 assert False, 'I should not have been selected to run'
819
820 def test___repr__():
821 pass
822 """
823 )
824 reprec = pytester.inline_run("-k repr")
825 reprec.assertoutcome(passed=1, failed=0)
826
827 def test_keyword_matching_is_case_insensitive_by_default(
828 self, pytester: Pytester

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected