Orchestrata Ultimate › Tests › Reference › session › test_facts_coverage
Tests reference — tests/session/test_facts_coverage.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_facts_coverage.py
source · 29 tests · 348 lines
Coverage tests for session.facts — FactGenerator.
Covers: session.context, session.facts, session.models
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestEscape |
70 | Test Prolog quote escaping. |
| method | TestEscape.test_escape_single_quote |
73 | Test single quotes are escaped. |
| method | TestEscape.test_escape_no_quotes |
77 | Test string without quotes passes through. |
| method | TestEscape.test_escape_multiple_quotes |
81 | Test multiple quotes are all escaped. |
| class | TestSessionFact |
89 | Test single session fact generation. |
| method | TestSessionFact.test_session_fact_format |
92 | Test session fact has correct Prolog format. |
| method | TestSessionFact.test_session_fact_timestamp |
101 | Test session fact contains integer timestamp. |
| class | TestWorkFact |
112 | Test single work item fact generation. |
| method | TestWorkFact.test_work_fact_format |
115 | Test work item fact has correct format. |
| method | TestWorkFact.test_work_fact_no_priority |
124 | Test work item fact with no priority uses 'none'. |
| method | TestWorkFact.test_work_fact_state |
130 | Test work item fact includes state. |
| class | TestSessionFactsFromList |
140 | Test fact generation from session list. |
| method | TestSessionFactsFromList.test_empty_list |
143 | Test empty list produces no facts. |
| method | TestSessionFactsFromList.test_session_with_objectives |
148 | Test objectives generate facts. |
| method | TestSessionFactsFromList.test_session_with_achievements |
155 | Test achievements generate facts. |
| method | TestSessionFactsFromList.test_session_with_artifacts |
163 | Test artifacts generate facts. |
| method | TestSessionFactsFromList.test_session_with_choices |
171 | Test technical choices generate decision facts. |
| method | TestSessionFactsFromList.test_session_with_handoff |
182 | Test handoff data generates blocker and active_work facts. |
| method | TestSessionFactsFromList.test_multiple_sessions |
195 | Test multiple sessions all generate facts. |
| method | TestSessionFactsFromList.test_escape_in_facts |
202 | Test quotes in session data are escaped. |
| class | TestStateFacts |
213 | Test state fact generation. |
| method | TestStateFacts.test_state_facts_include_version |
216 | Test state facts include project version. |
| method | TestStateFacts.test_state_facts_include_branch |
222 | Test state facts include git branch. |
| method | TestStateFacts.test_state_facts_include_status |
228 | Test state facts include status line. |
| method | TestStateFacts.test_state_facts_no_context |
234 | Test state facts return empty when no context file. |
| class | TestWorkFacts |
244 | Test work item fact generation from context. |
| method | TestWorkFacts.test_work_facts_empty |
247 | Test no work items produces empty list. |
| method | TestWorkFacts.test_work_facts_with_items |
252 | Test work items generate facts. |
| method | TestWorkFacts.test_work_facts_no_context |
264 | Test work facts return empty when no context. |
| class | TestGenerateAllFacts |
274 | Test complete fact generation. |
| method | TestGenerateAllFacts.test_generate_all_combines |
277 | Test generate_all combines state, session, and work facts. |
| class | TestWriteFactsFile |
292 | Test writing facts to a file. |
| method | TestWriteFactsFile.test_write_facts_file |
295 | Test facts are written to file. |
| method | TestWriteFactsFile.test_write_facts_file_count |
305 | Test count matches actual facts. |
| class | TestQueryMethods |
319 | Test query methods. |
| method | TestQueryMethods.test_sessions_by_purpose |
322 | Test filtering sessions by purpose pattern. |
| method | TestQueryMethods.test_sessions_by_purpose_case_insensitive |
332 | Test purpose matching is case-insensitive. |
| method | TestQueryMethods.test_work_by_priority |
340 | Test filtering work items by priority. |