Orchestrata Ultimate › Tests › Reference › session › test_session_facts

Tests reference — tests/session/test_session_facts.py

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

Prose pending.

tests/session/test_session_facts.py

source · 25 tests · 561 lines

Tests for facts.py - FactGenerator class.

Covers: session.facts, session.models

Kind Name Line Description
class TestFactGenerator 137 Tests for FactGenerator class.
method TestFactGenerator.test_init_with_path 140 Test initialization with project path.
method TestFactGenerator.test_generate_all_facts_returns_list 146 Test generate_all_facts returns list of strings.
method TestFactGenerator.test_write_facts_file 155 Test writing facts to a file.
method TestFactGenerator.test_session_fact_generation 168 Test generating session fact.
method TestFactGenerator.test_work_fact_generation 186 Test generating work item fact.
method TestFactGenerator.test_escape_quotes 199 Test escaping single quotes in text.
method TestFactGenerator.test_sessions_by_purpose_filter 208 Test filtering sessions by purpose pattern.
method TestFactGenerator.test_work_by_priority_filter 218 Test filtering work items by priority.
class TestFactGeneratorStateFacts 232 Tests for state fact generation.
method TestFactGeneratorStateFacts.test_state_facts_include_version 235 Test that state facts include version.
method TestFactGeneratorStateFacts.test_state_facts_include_branch 244 Test that state facts include branch.
class TestFactGeneratorSessionFacts 254 Tests for session fact generation.
method TestFactGeneratorSessionFacts.test_session_facts_format 257 Test session facts have correct format.
class TestFactGeneratorWorkFacts 270 Tests for work item fact generation.
method TestFactGeneratorWorkFacts.test_work_facts_format 273 Test work item facts have correct format.
class TestFactGeneratorEdgeCases 286 Edge case tests for FactGenerator.
method TestFactGeneratorEdgeCases.test_empty_context_file 289 Test handling empty context file.
method TestFactGeneratorEdgeCases.test_no_context_file 302 Test handling missing context file.
method TestFactGeneratorEdgeCases.test_special_characters_in_text 317 Test handling special characters.
class TestFactGeneratorWithRedis 331 Tests using real Redis.
method TestFactGeneratorWithRedis.test_facts_can_be_stored_in_redis 334 Test storing generated facts in Redis.
class TestFactGeneratorWithGraph 353 Tests using the real operational graph.
method TestFactGeneratorWithGraph.test_session_fact_in_graph 356 Test storing session fact in the graph.
class TestFactGeneratorIntegration 386 Integration tests for FactGenerator.
method TestFactGeneratorIntegration.test_full_fact_generation_workflow 389 Test complete fact generation workflow.
method TestFactGeneratorIntegration.test_multiple_generations_consistent 413 Test that multiple generations produce same results.
method TestFactGeneratorIntegration.test_session_with_objectives 431 Test generating objective facts from session.
method TestFactGeneratorIntegration.test_session_with_achievements 453 Test generating achievement facts from session.
method TestFactGeneratorIntegration.test_session_with_artifacts 471 Test generating artifact facts from session.
method TestFactGeneratorIntegration.test_session_with_choices 494 Test generating decision facts from session.
method TestFactGeneratorIntegration.test_session_with_handoff 517 Test generating handoff facts from session.
method TestFactGeneratorIntegration.test_work_item_with_notes 542 Test generating facts for work items with notes.