(
demo_jar,
graphscope_session,
p2p_project_directed_graph_string_prop,
projected_graph_stringApp_class,
)
| 193 | ) |
| 194 | @pytest.mark.timeout(3600) |
| 195 | def 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( |
nothing calls this directly
no test coverage detected