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

Method test_no_under

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

Source from the content-addressed store, hash-verified

799
800class TestNodeKeywords:
801 def test_no_under(self, pytester: Pytester) -> None:
802 modcol = pytester.getmodulecol(
803 """
804 def test_pass(): pass
805 def test_fail(): assert 0
806 """
807 )
808 values = list(modcol.keywords)
809 assert modcol.name in values
810 for x in values:
811 assert not x.startswith("_")
812 assert modcol.name in repr(modcol.keywords)
813
814 def test_issue345(self, pytester: Pytester) -> None:
815 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

getmodulecolMethod · 0.45

Tested by

no test coverage detected