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

Function test_string_app

python/graphscope/tests/unittest/test_java_app.py:195–210  ·  view source on GitHub ↗
(
    demo_jar,
    graphscope_session,
    p2p_project_directed_graph_string_prop,
    projected_graph_stringApp_class,
)

Source from the content-addressed store, hash-verified

193)
194@pytest.mark.timeout(3600)
195def test_string_app(
196 demo_jar,
197 graphscope_session,
198 p2p_project_directed_graph_string_prop,
199 projected_graph_stringApp_class,
200):
201 graphscope_session.add_lib(demo_jar)
202 string_app = load_app(algo="java_pie:{}".format(projected_graph_stringApp_class))
203 ctx = string_app(p2p_project_directed_graph_string_prop._project_to_simple())
204
205 frame = ctx.to_dataframe({"id": "v.id", "r": "r"})
206 frame
207 num_rows = frame.shape[0]
208 for i in range(min(num_rows, 10)):
209 # size should large than 0
210 assert len(frame["r"][i]) > 0
211
212
213@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 5

load_appFunction · 0.90
add_libMethod · 0.45
formatMethod · 0.45
_project_to_simpleMethod · 0.45
to_dataframeMethod · 0.45

Tested by

no test coverage detected