MCPcopy
hub / github.com/pytest-dev/pytest / check

Method check

testing/test_mark.py:843–848  ·  testing/test_mark.py::TestKeywordSelection.check
(keyword, name)

Source from the content-addressed store, hash-verified

841 )
842
843 def check(keyword, name):
844 reprec = pytester.inline_run(class="st">"-s", class="st">"-k", keyword, file_test)
845 _passed, _skipped, failed = reprec.listoutcomes()
846 assert len(failed) == 1
847 assert failed[0].nodeid.split(class="st">"::")[-1] == name
848 assert len(reprec.getcalls(class="st">"pytest_deselected")) == 1
849
850 for keyword in [class="st">"test_one", class="st">"est_on"]:
851 check(keyword, class="st">"test_one")

Callers 15

test_testdir_testtmprootFunction · 0.45
test_add_somethingMethod · 0.45
test_basename_checksMethod · 0.45
test_basenameMethod · 0.45
test_not_existsMethod · 0.45
test_existsMethod · 0.45
test_dirMethod · 0.45
test_fnmatch_fileMethod · 0.45
test_reltoMethod · 0.45
test_listdir_filterMethod · 0.45
test_listdir_sortedMethod · 0.45

Calls 3

listoutcomesMethod · 0.80
getcallsMethod · 0.80
inline_runMethod · 0.45

Tested by

no test coverage detected