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

Method check

testing/test_mark.py:774–779  ·  view source on GitHub ↗
(keyword, name)

Source from the content-addressed store, hash-verified

772 )
773
774 def check(keyword, name):
775 reprec = pytester.inline_run("-s", "-k", keyword, file_test)
776 passed, skipped, failed = reprec.listoutcomes()
777 assert len(failed) == 1
778 assert failed[0].nodeid.split("::")[-1] == name
779 assert len(reprec.getcalls("pytest_deselected")) == 1
780
781 for keyword in ["test_one", "est_on"]:
782 check(keyword, "test_one")

Calls 3

listoutcomesMethod · 0.80
getcallsMethod · 0.80
inline_runMethod · 0.45

Tested by

no test coverage detected