Orchestrata Ultimate › Tests › Reference › session › test_event_emitting_session_controller

Tests reference — tests/session/test_event_emitting_session_controller.py

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

Prose pending.

tests/session/test_event_emitting_session_controller.py

source · 11 tests · 196 lines

Tests for EventEmittingSessionController wrapper.

Covers: session.context, session.models, session.session, core.interfaces/ (package), session/ (package)

Kind Name Line Description
class TestBegin 86
method TestBegin.test_emits_session_opened 87 begin() emits session.opened with seq, purpose, objectives.
method TestBegin.test_begin_returns_session_record 98 begin() returns the real SessionRecord from the wrapped controller.
method TestBegin.test_no_event_without_event_bus 105 begin() works without event_bus.
class TestEnd 116
method TestEnd.test_emits_session_closed 117 end() emits session.closed with seq and achievements.
method TestEnd.test_no_event_without_event_bus 128 end() works without event_bus.
method TestEnd.test_end_without_active_session_returns_none_and_does_not_crash 134 end() with no active session returns None instead of crashing.
class TestLogWork 157
method TestLogWork.test_emits_work_logged 158 log_work() emits session.work.logged with seq and desc.
method TestLogWork.test_no_event_without_active_session 170 log_work() without active session emits no event.
method TestLogWork.test_no_event_without_event_bus 177 log_work() works without event_bus.
class TestDelegation 188
method TestDelegation.test_getattr_delegates_to_controller 189 getattr forwards attribute access to wrapped SessionController.
method TestDelegation.test_missing_attr_raises 193 Accessing non-existent attribute raises AttributeError.