MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_decorated_class

Function test_decorated_class

tests/test_python_decorators.py:151–160  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

149
150
151def test_decorated_class(tmp_path):
152 f = _write(tmp_path / "pkg" / "model.py",
153 "from registry import register_model\n"
154 "\n"
155 "@register_model\n"
156 "class Point:\n"
157 " x: int\n")
158 r = extract([f], cache_root=tmp_path)
159 assert _make_id("register_model") in _deco_edges(
160 r, _class_nid("pkg/model.py", "Point"))
161
162
163def test_stdlib_class_decorator_emits_no_edge(tmp_path):

Callers

nothing calls this directly

Calls 5

extractFunction · 0.90
_make_idFunction · 0.90
_deco_edgesFunction · 0.85
_writeFunction · 0.70
_class_nidFunction · 0.70

Tested by

no test coverage detected