Skip to content

Component & Integration Tests for Core Logic #24

@W1ndrunn3rr

Description

@W1ndrunn3rr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestTests related task

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions