MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_node_from_parent_disallowed_arguments

Function test_node_from_parent_disallowed_arguments

testing/test_nodes.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_node_from_parent_disallowed_arguments() -> None:
16 with pytest.raises(TypeError, match="session is"):
17 nodes.Node.from_parent(None, session=None) # type: ignore[arg-type]
18 with pytest.raises(TypeError, match="config is"):
19 nodes.Node.from_parent(None, config=None) # type: ignore[arg-type]
20
21
22def test_node_direct_construction_deprecated() -> None:

Callers

nothing calls this directly

Calls 1

from_parentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…