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

Function test_dm_emits_new_as_instantiates

tests/test_languages.py:2434–2439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2432
2433@_needs_dm
2434def test_dm_emits_new_as_instantiates():
2435 r = extract_dm(FIXTURES / "sample.dm")
2436 node_by_id = {n["id"]: n["label"] for n in r["nodes"]}
2437 inst = [(node_by_id.get(e["source"]), node_by_id.get(e["target"]))
2438 for e in r["edges"] if e["relation"] == "instantiates"]
2439 assert ("RunTest()", "/datum/weapon/sword") in inst
2440
2441@_needs_dm
2442def test_dm_call_edges_have_call_context():

Callers

nothing calls this directly

Calls 2

extract_dmFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected