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

Function test_node_from_parent_disallowed_arguments

testing/test_nodes.py:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_node_from_parent_disallowed_arguments() -> None:
38 with pytest.raises(TypeError, match="session is"):
39 nodes.Node.from_parent(None, session=None) # type: ignore[arg-type]
40 with pytest.raises(TypeError, match="config is"):
41 nodes.Node.from_parent(None, config=None) # type: ignore[arg-type]
42
43
44def test_node_direct_construction_deprecated() -> None:

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected