uesleilima commented on PR #2374: URL: https://github.com/apache/age/pull/2374#issuecomment-4280444614
Added an end-to-end integration test that exercises both new features against a live AGE database, since the existing tests were unit-only: - `TestConfigureConnection` mocks the psycopg connection — it never proves `AgeLoader` registers against real `agtype` OIDs. - `TestModelToDict` hand-constructs `Vertex`/`Edge`/`Path` via kwargs — it never serialises parser-produced objects. The new `TestAgeBasic.testConfigureConnection`: 1. opens a raw `psycopg` connection (deliberately bypassing `age.connect()` — that's the whole point of `configure_connection()`), 2. calls `configure_connection(raw, graph_name=..., load=True)`, 3. runs a Cypher `CREATE ... RETURN a, r, b` and asserts the returned values are real `Vertex`/`Edge` instances with the expected properties, 4. round-trips `to_dict()` through `json.dumps()` and asserts the resulting `label`/`start_id`/`end_id`/`properties` shape, 5. repeats the round-trip for a `Path` returned by `MATCH`. Validated locally against `apache/age:dev_snapshot_master` — all 42 tests pass. Commit: https://github.com/uesleilima/age/commit/9661b7a4c1c4cd799315326868b08362c2a3f2dc -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
