MCPcopy
hub / github.com/dmlc/dgl / test_sgc

Function test_sgc

tests/examples/test_sparse_examples.py:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_sgc():
85 script = os.path.join(EXAMPLE_ROOT, "sgc.py")
86 out = subprocess.run(["python", str(script)], capture_output=True)
87 assert (
88 out.returncode == 0
89 ), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}"
90 stdout = out.stdout.decode("utf-8")
91 assert float(stdout[-5:]) > 0.7
92
93
94def _test_flaky(test_fn, max_num_success=8, num_tries=10):

Callers

nothing calls this directly

Calls 3

joinMethod · 0.45
runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected