Orchestrata Ultimate › Tests › Reference › session › test_session_models

Tests reference — tests/session/test_session_models.py

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

Prose pending.

tests/session/test_session_models.py

source · 58 tests · 595 lines

Comprehensive tests for session management models.

Covers: session.models

Kind Name Line Description
class TestTaskState 30 Test TaskState enum.
method TestTaskState.test_todo_value 33 Test TODO state value.
method TestTaskState.test_active_value 37 Test ACTIVE state value.
method TestTaskState.test_done_value 41 Test DONE state value.
method TestTaskState.test_blocked_value 45 Test BLOCKED state value.
method TestTaskState.test_deferred_value 49 Test DEFERRED state value.
method TestTaskState.test_all_states_are_strings 53 Test all states are strings.
class TestWorkItem 62 Test WorkItem model.
method TestWorkItem.test_create_minimal 65 Test creating work item with minimal fields.
method TestWorkItem.test_create_full 73 Test creating work item with all fields.
method TestWorkItem.test_mark_done 86 Test marking item as done.
method TestWorkItem.test_mark_deferred 93 Test marking item as deferred.
method TestWorkItem.test_timestamp_auto_set 100 Test timestamp is automatically set.
class TestLogEntry 110 Test LogEntry model.
method TestLogEntry.test_create_minimal 113 Test creating log entry with minimal fields.
method TestLogEntry.test_create_with_details 119 Test creating log entry with details.
method TestLogEntry.test_timestamp_auto_set 125 Test timestamp is automatically set.
class TestFileArtifact 134 Test FileArtifact model.
method TestFileArtifact.test_create_minimal 137 Test creating file artifact with minimal fields.
method TestFileArtifact.test_create_full 144 Test creating file artifact with all fields.
class TestTechChoice 157 Test TechChoice model.
method TestTechChoice.test_create_minimal 160 Test creating tech choice.
method TestTechChoice.test_timestamp_auto_set 166 Test timestamp is automatically set.
class TestHandoffData 175 Test HandoffData model.
method TestHandoffData.test_create_empty 178 Test creating empty handoff.
method TestHandoffData.test_create_full 188 Test creating handoff with all fields.
class TestSessionRecord 213 Test SessionRecord model.
method TestSessionRecord.test_create_minimal 216 Test creating session with minimal fields.
method TestSessionRecord.test_create_full 225 Test creating session with all fields.
method TestSessionRecord.test_session_id_property 241 Test session_id property format.
class TestProjectState 252 Test ProjectState model.
method TestProjectState.test_create_default 255 Test creating project state with defaults.
method TestProjectState.test_create_custom 263 Test creating project state with custom values.
class TestContextData 280 Test ContextData model.
method TestContextData.test_create_empty 283 Test creating empty context.
method TestContextData.test_add_session 290 Test adding session to context.
method TestContextData.test_get_latest_session_empty 301 Test getting latest session when empty.
method TestContextData.test_get_latest_session_multiple 306 Test getting latest session with multiple.
method TestContextData.test_next_session_num_empty 319 Test next session number when empty.
method TestContextData.test_next_session_num_with_sessions 324 Test next session number with sessions.
class TestPortfolioProjectRef 336 Test PortfolioProjectRef model.
method TestPortfolioProjectRef.test_create_minimal 339 Test creating project ref with minimal fields.
method TestPortfolioProjectRef.test_create_full 346 Test creating project ref with all fields.
class TestProjectSessionLink 361 Test ProjectSessionLink model.
method TestProjectSessionLink.test_create_minimal 364 Test creating session link with minimal fields.
method TestProjectSessionLink.test_create_full 371 Test creating session link with all fields.
class TestPortfolioSessionRecord 382 Test PortfolioSessionRecord model.
method TestPortfolioSessionRecord.test_create_minimal 385 Test creating portfolio session with minimal fields.
method TestPortfolioSessionRecord.test_link_session 392 Test linking project session.
class TestPortfolioState 403 Test PortfolioState model.
method TestPortfolioState.test_create_default 406 Test creating portfolio state with defaults.
method TestPortfolioState.test_create_custom 412 Test creating portfolio state with custom values.
class TestPortfolioData 421 Test PortfolioData model.
method TestPortfolioData.test_create_minimal 424 Test creating portfolio with minimal fields.
method TestPortfolioData.test_create_full 431 Test creating portfolio with all fields.
method TestPortfolioData.test_add_project 437 Test adding project to portfolio.
method TestPortfolioData.test_drop_project 444 Test dropping project from portfolio.
method TestPortfolioData.test_drop_project_not_exists 452 Test dropping non-existent project.
method TestPortfolioData.test_get_project 458 Test getting project by name.
method TestPortfolioData.test_get_project_not_exists 466 Test getting non-existent project.
method TestPortfolioData.test_add_session 472 Test adding session to portfolio.
method TestPortfolioData.test_latest_session_empty 479 Test getting latest session when empty.
method TestPortfolioData.test_latest_session_multiple 484 Test getting latest session with multiple.
method TestPortfolioData.test_next_session_num_empty 493 Test next session number when empty.
method TestPortfolioData.test_next_session_num_with_sessions 498 Test next session number with sessions.
method TestPortfolioData.test_add_work 504 Test adding work item to portfolio.
method TestPortfolioData.test_pending_work 512 Test getting pending work items.
class TestSessionRecordHeaderLine 526 Test header_line property.
method TestSessionRecordHeaderLine.test_header_line_format 529 Test header line format.
class TestContextDataPendingWork 543 Test pending_work method.
method TestContextDataPendingWork.test_pending_work_filters_done 546 Test pending_work excludes done items.
class TestPortfolioProjectRefAbsolutePath 564 Test absolute_path method.
method TestPortfolioProjectRefAbsolutePath.test_absolute_path_with_relative 567 Test absolute_path with relative path.
method TestPortfolioProjectRefAbsolutePath.test_absolute_path_with_absolute 576 Test absolute_path with already absolute path.
class TestPortfolioSessionRecordSessionId 586 Test session_id property on PortfolioSessionRecord.
method TestPortfolioSessionRecordSessionId.test_session_id_format 589 Test session_id format.