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

Method test_pdb_custom_cls_invalid

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

Source from the content-addressed store, hash-verified

853 assert custom_pdb_calls == ["init", "reset", "interaction"]
854
855 def test_pdb_custom_cls_invalid(self, pytester: Pytester) -> None:
856 result = pytester.runpytest_inprocess("--pdbcls=invalid")
857 result.stderr.fnmatch_lines(
858 [
859 "*: error: argument --pdbcls: 'invalid' is not in the format 'modname:classname'"
860 ]
861 )
862
863 def test_pdb_validate_usepdb_cls(self):
864 assert _validate_usepdb_cls("os.path:dirname.__name__") == (

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected