Skip to content

Commit ebad547

Browse files
committed
Enable clique_counting cypher test
1 parent 07ebb31 commit ebad547

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

graphdatascience/tests/integrationV2/procedure_surface/cypher/community/test_clique_counting_cypher_endpoints.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
)
1111
from graphdatascience.tests.integrationV2.procedure_surface.cypher.cypher_graph_helper import create_graph
1212

13-
pytest.skip("CliqueCounting has not yet landed in a Neo4j release", allow_module_level=True)
14-
1513

1614
@pytest.fixture
1715
def sample_graph(query_runner: QueryRunner) -> Generator[GraphV2, None, None]:
@@ -23,7 +21,7 @@ def sample_graph(query_runner: QueryRunner) -> Generator[GraphV2, None, None]:
2321
projection_query = """
2422
MATCH (n)
2523
OPTIONAL MATCH (n)-[r]->(m)
26-
WITH gds.graph.project('g', n, m, {relationshipType: "T"}, {undirectedRelationshipTyps: ["T"]}) AS G
24+
WITH gds.graph.project('g', n, m, {relationshipType: "T"}, {undirectedRelationshipTypes: ["T"]}) AS G
2725
RETURN G
2826
"""
2927

@@ -58,9 +56,8 @@ def test_clique_counting_stream(
5856
G=sample_graph,
5957
)
6058

61-
assert "nodeId" in result_df.columns
62-
assert "cliqueCount" in result_df.columns
63-
assert len(result_df.columns) == 2
59+
assert set(result_df.columns) == {"nodeId", "counts"}
60+
assert len(result_df) == 4
6461

6562

6663
def test_clique_counting_mutate(

0 commit comments

Comments
 (0)