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

Function graphscope_session

python/graphscope/nx/conftest.py:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28@pytest.fixture(scope="module")
29def graphscope_session():
30 graphscope.set_option(show_log=True)
31 graphscope.set_option(log_level="DEBUG")
32 if os.environ.get("DEPLOYMENT", None) == "standalone":
33 sess = graphscope.session(cluster_type="hosts", num_workers=1)
34 else:
35 sess = graphscope.session(cluster_type="hosts")
36 sess.as_default()
37 yield sess
38 sess.close()
39
40
41def pytest_collection_modifyitems(items):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected