-
Notifications
You must be signed in to change notification settings - Fork 1
Component & Integration Tests for Core Logic #24
Copy link
Copy link
Open
Labels
TestTests related taskTests related task
Description
Increase test coverage for core logic:
- test_guardrails.py — parametrized: university questions → generate_cypher, off-topic → end
- test_schema_property.py — mock Neo4j: empty schema (assert no cache), non-empty (assert cached)
- test_cypher_generation.py — mock LLM, assert LIMIT enforced and prompt guidance
- test_pipeline_loop.py — mock 3 pages, assert reflect_on_schema and populate_graph called 3 times
- test_session_history.py — assert history for generate_final_answer contains last 3 turns in correct format
- test_api_chat.py — integration test with (test) Neo4j + LLM (or recorded cassette)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TestTests related taskTests related task