Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_query_engine_cache

Tests reference — tests/knowledge_graph/test_query_engine_cache.py

Module of tests/knowledge_graph, split out because the directory page would be too large.

Prose pending.

tests/knowledge_graph/test_query_engine_cache.py

source · 3 tests · 97 lines

Tests for QueryEngine cache invalidation via graph version.

Covers: knowledge_graph.graph_client, knowledge_graph.query_engine

Kind Name Line Description
function test_get_graph_version_reflects_bumps 54 get_graph_version() reads the same counter bump_graph_version()
function test_query_engine_caches_repeated_queries 65 A repeated identical query is served from cache: after an out-of-band
function test_bump_graph_version_invalidates_query_cache 84 bump_graph_version() invalidates the cache: the same query re-reads