Orchestrata Ultimate › Tests › Reference › session › test_session_spec006_implementation
Tests reference — tests/session/test_session_spec006_implementation.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_spec006_implementation.py
source · 40 tests · 480 lines
Tests for spec 006 implementation gaps.
Covers: core.paths, infra.prolog_bridge, infra.redis_state, session.constants, session.fact_emitter, session.hook_registry, session.prolog_interface, session.redis_store, session.session, session.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSessionIdFormat |
133 | Session ID must match session_YYYYMMDD_HHMMSS_{uuid_hex[:8]}. |
| method | TestSessionIdFormat.test_format_matches_spec |
136 | |
| method | TestSessionIdFormat.test_format_with_explicit_timestamp |
140 | |
| method | TestSessionIdFormat.test_uniqueness_100_ids |
146 | |
| method | TestSessionIdFormat.test_uuid_portion_is_hex |
150 | |
| method | TestSessionIdFormat.test_pattern_rejects_bad_ids |
159 | |
| class | TestHookSignatureOnOpen |
176 | Hook fires on session open with (session_id, **kwargs). |
| method | TestHookSignatureOnOpen.test_hook_receives_session_id |
179 | |
| method | TestHookSignatureOnOpen.test_hook_receives_kwargs |
189 | |
| class | TestHookSignatureOnClose |
200 | Hook fires on session close with (session_id, **kwargs). |
| method | TestHookSignatureOnClose.test_hook_receives_session_id |
203 | |
| method | TestHookSignatureOnClose.test_hook_receives_summary_kwarg |
213 | |
| class | TestHookSignatureOnFact |
224 | Hook fires on fact emission with (session_id, **kwargs). |
| method | TestHookSignatureOnFact.test_hook_receives_fact_info |
227 | |
| class | TestHookRegistryAddRemove |
246 | Can add and remove hooks from the registry. |
| method | TestHookRegistryAddRemove.test_add_hook |
249 | |
| method | TestHookRegistryAddRemove.test_remove_hook |
256 | |
| method | TestHookRegistryAddRemove.test_remove_nonexistent_returns_false |
265 | |
| method | TestHookRegistryAddRemove.test_invalid_hook_point_raises |
272 | |
| method | TestHookRegistryAddRemove.test_clear_single_point |
276 | |
| method | TestHookRegistryAddRemove.test_clear_all |
283 | |
| method | TestHookRegistryAddRemove.test_multiple_hooks_fire_in_order |
291 | |
| method | TestHookRegistryAddRemove.test_failing_hook_does_not_block_others |
298 | |
| method | TestHookRegistryAddRemove.test_session_hook_protocol_check |
312 | |
| class | TestPrologSessionAsserted |
323 | session(ID, active, Timestamp) asserted in Prolog on open. |
| method | TestPrologSessionAsserted.test_assert_session_open |
326 | |
| method | TestPrologSessionAsserted.test_query_after_open |
331 | |
| class | TestPrologSessionRetractedOnClose |
343 | session fact retracted on close. |
| method | TestPrologSessionRetractedOnClose.test_retract_after_open |
346 | |
| method | TestPrologSessionRetractedOnClose.test_query_empty_after_retract |
352 | |
| class | TestPrologFactAsserted |
360 | session_fact(ID, Term, Timestamp, Source) asserted on fact emit. |
| method | TestPrologFactAsserted.test_assert_session_fact |
363 | |
| method | TestPrologFactAsserted.test_query_session_facts |
368 | |
| class | TestPrologQueryable |
376 | Can query session state from Prolog after assertion. |
| method | TestPrologQueryable.test_round_trip |
379 | |
| method | TestPrologQueryable.test_no_engine_returns_empty |
390 | |
| class | TestFlushToProlog |
404 | flush_to_prolog uses session_fact/4 via PrologSessionInterface. |
| method | TestFlushToProlog.test_flush_asserts_facts |
407 | |
| method | TestFlushToProlog.test_flush_no_prolog_returns_zero |
420 | |
| class | TestDocstringsExist |
432 | Verify key classes and methods have non-empty doc. |
| method | TestDocstringsExist.test_session_controller_docstring |
435 | |
| method | TestDocstringsExist.test_redis_session_store_docstring |
443 | |
| method | TestDocstringsExist.test_fact_emitter_docstring |
447 | |
| method | TestDocstringsExist.test_prolog_session_interface_docstring |
451 | |
| method | TestDocstringsExist.test_hook_registry_docstring |
455 | |
| method | TestDocstringsExist.test_session_hook_protocol_docstring |
459 | |
| method | TestDocstringsExist.test_generate_session_id_docstring |
463 | |
| method | TestDocstringsExist.test_flush_to_prolog_docstring |
467 | |
| method | TestDocstringsExist.test_save_session_docstring |
470 | |
| method | TestDocstringsExist.test_assert_session_open_docstring |
474 | |
| method | TestDocstringsExist.test_assert_session_fact_docstring |
478 |