The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: improve test setup to accurately test filtering of labels in neo4j (#22531)
leila-messallem3280a5b49b0c
diff --git a/libs/community/tests/integration_tests/graphs/test_neo4j.py b/libs/community/tests/integration_tests/graphs/test_neo4j.pyindex 2765938905..a519b43070 100644--- a/libs/community/tests/integration_tests/graphs/test_neo4j.py+++ b/libs/community/tests/integration_tests/graphs/test_neo4j.py@@ -266,12 +266,17 @@ def test_neo4j_filtering_labels() -> None:# Remove all constraintsgraph.query("CALL apoc.schema.assert({}, {})")graph.query(- "CREATE (:`_Bloom_Scene_`)-[:_Bloom_HAS_SCENE_]->(:`_Bloom_Perspective_`)"+ """+ CREATE (:_Bloom_Scene_ {property_a: 'a'})+ -[:_Bloom_HAS_SCENE_ {property_b: 'b'}]+ ->(:_Bloom_Perspective_)+ """)graph.refresh_schema()- # Assert both are empty+ # Assert all are emptyassert graph.structured_schema["node_props"] == {}+ assert graph.structured_schema["rel_props"] == {}assert graph.structured_schema["relationships"] == []