MCPcopy Create free account
hub / github.com/alibaba/GraphScope / graphscope_session

Function graphscope_session

python/graphscope/tests/conftest.py:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36@pytest.fixture(scope="module")
37def graphscope_session():
38 graphscope.set_option(show_log=True)
39 graphscope.set_option(log_level="DEBUG")
40 if os.environ.get("DEPLOYMENT", None) == "standalone":
41 sess = graphscope.session(cluster_type="hosts", num_workers=1)
42 else:
43 sess = graphscope.session(cluster_type="hosts")
44 yield sess
45 sess.close()
46
47
48test_repo_dir = os.path.expandvars("${GS_TEST_DIR}")

Callers

nothing calls this directly

Calls 4

set_optionMethod · 0.80
getMethod · 0.65
closeMethod · 0.65
sessionMethod · 0.45

Tested by

no test coverage detected