langchain/libs/community/tests/unit_tests/graphs
Hemant Rawat db1693aa70
community: fix issue #29429 in age_graph.py (#29506)
## Description:

This PR addresses issue #29429 by fixing the _wrap_query method in
langchain_community/graphs/age_graph.py. The method now correctly
handles Cypher queries with UNION and EXCEPT operators, ensuring that
the fields in the SQL query are ordered as they appear in the Cypher
query. Additionally, the method now properly handles cases where RETURN
* is not supported.

### Issue: #29429

### Dependencies: None


### Add tests and docs:

Added unit tests in tests/unit_tests/graphs/test_age_graph.py to
validate the changes.
No new integrations were added, so no example notebook is necessary.
Lint and test:

Ran make format, make lint, and make test to ensure code quality and
functionality.
2025-02-01 21:24:45 -05:00
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_age_graph.py community: fix issue #29429 in age_graph.py (#29506) 2025-02-01 21:24:45 -05:00
test_imports.py community[patch]: import flattening fix (#20110) 2024-04-10 13:01:19 -04:00
test_neo4j_graph.py comunity[patch]: Fix neo4j sanitizing values (#18750) 2024-03-07 19:21:52 -08:00
test_neptune_graph.py community[minor], langchian[minor]: Add Neptune Rdf graph and chain (#16650) 2024-02-12 21:30:20 -08:00
test_ontotext_graphdb_graph.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00