Orchestrata Ultimate › Tests › Reference › knowledge_graph › test_temporal

Tests reference — tests/knowledge_graph/test_temporal.py

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

Prose pending.

tests/knowledge_graph/test_temporal.py

source · 16 tests · 227 lines

Tests for knowledge_graph.temporal.

Covers: knowledge_graph.config, knowledge_graph.graph_client, knowledge_graph.temporal, knowledge_graph.types

Kind Name Line Description
class TestTemporalManager 27
method TestTemporalManager.test_init 28
method TestTemporalManager.test_version_node 32
method TestTemporalManager.test_version_node_multiple 38
method TestTemporalManager.test_get_state_at_found 45
method TestTemporalManager.test_get_state_at_not_found 55
method TestTemporalManager.test_get_history 63
method TestTemporalManager.test_invalidate 72
method TestTemporalManager.test_invalidate_not_found 78
method TestTemporalManager.test_get_version_count_empty 83
method TestTemporalManager.test_clear 87 test_clear must actually exercise clear(), not just assert the
method TestTemporalManager.test_get_state_at_naive_timestamp 101 get_state_at must accept a timestamp string with no tzinfo
method TestTemporalManager.test_get_state_at_naive_valid_from 110 A version whose stored valid_from lacks tzinfo (e.g. loaded
method TestTemporalManager.test_get_state_at_naive_valid_until_within_range 132 A closed version whose stored valid_until lacks tzinfo must
method TestTemporalManager.test_get_state_at_historical_version_between_updates 154 A past timestamp that falls between two real (tz-aware)
method TestTemporalManager.test_version_node_persists_to_connected_neo4j 172 When given a live, connected GraphClient, version_node must
method TestTemporalManager.test_version_node_survives_neo4j_persist_failure 213 If the client reports connected=True but has no live driver