Orchestrata Ultimate › Tests › Reference › session › test_session_carryover

Tests reference — tests/session/test_session_carryover.py

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

Prose pending.

tests/session/test_session_carryover.py

source · 40 tests · 490 lines

Comprehensive tests for carryover.py - WorkCarryoverManager class.

Covers: session.carryover, session.context, session.models

Kind Name Line Description
class TestCarryoverManagerInit 72 Test WorkCarryoverManager initialization.
method TestCarryoverManagerInit.test_init_with_path_string 75 Test initialization with string path.
method TestCarryoverManagerInit.test_init_with_path_object 80 Test initialization with Path object.
class TestAllItems 90 Test all_items() method.
method TestAllItems.test_all_items_empty 93 Test getting items when none exist.
method TestAllItems.test_all_items_with_data 98 Test getting all items.
class TestPendingItems 107 Test pending_items() method.
method TestPendingItems.test_pending_items_all_pending 110 Test getting pending items when all are pending.
method TestPendingItems.test_pending_items_excludes_completed 115 Test that completed items are excluded.
class TestItemsByPriority 127 Test items_by_priority() method.
method TestItemsByPriority.test_items_by_priority_found 130 Test getting items by existing priority.
method TestItemsByPriority.test_items_by_priority_not_found 136 Test getting items by nonexistent priority.
class TestHighPriorityItems 145 Test high_priority_items() method.
method TestHighPriorityItems.test_high_priority_items 148 Test getting P0 and P1 items.
method TestHighPriorityItems.test_high_priority_items_empty 156 Test when no high priority items exist.
class TestAddItem 166 Test add_item() method.
method TestAddItem.test_add_item_minimal 169 Test adding item with minimal info.
method TestAddItem.test_add_item_with_priority 175 Test adding item with priority.
method TestAddItem.test_add_item_with_notes 180 Test adding item with notes.
method TestAddItem.test_add_item_persists 185 Test that added item persists.
class TestCompleteItem 196 Test complete_item() method.
method TestCompleteItem.test_complete_item_exists 199 Test completing existing item.
method TestCompleteItem.test_complete_item_not_exists 209 Test completing nonexistent item.
class TestCompleteByIndex 218 Test complete_by_index() method.
method TestCompleteByIndex.test_complete_by_index_valid 221 Test completing item by valid index.
method TestCompleteByIndex.test_complete_by_index_invalid 230 Test completing item by invalid index.
method TestCompleteByIndex.test_complete_by_index_negative 235 Test completing item by negative index.
class TestUpdatePriority 248 Test update_priority() method.
method TestUpdatePriority.test_update_priority_exists 251 Test updating priority of existing item.
method TestUpdatePriority.test_update_priority_not_exists 260 Test updating priority of nonexistent item.
class TestAddNotes 269 Test add_notes() method.
method TestAddNotes.test_add_notes_exists 272 Test adding note to existing item.
method TestAddNotes.test_add_notes_not_exists 282 Test adding note to nonexistent item.
method TestAddNotes.test_add_notes_appends 287 Test that notes are appended.
class TestRemoveItem 301 Test remove_item() method.
method TestRemoveItem.test_remove_item_exists 304 Test removing existing item.
method TestRemoveItem.test_remove_item_not_exists 313 Test removing nonexistent item.
class TestClearDone 322 Test clear_done() method.
method TestClearDone.test_clear_done_none 325 Test clearing when no items are completed.
method TestClearDone.test_clear_done_some 330 Test clearing some completed items.
class TestSummary 345 Test summary() method.
method TestSummary.test_summary_empty 348 Test summary with no items.
method TestSummary.test_summary_with_items 354 Test summary with items.
class TestFormatList 366 Test format_list() method.
method TestFormatList.test_format_empty 369 Test formatting empty list.
method TestFormatList.test_format_with_items 374 Test formatting with items.
method TestFormatList.test_format_excludes_completed_by_default 380 Test that completed items are excluded by default.
method TestFormatList.test_format_includes_completed 390 Test including completed items.
method TestFormatList.test_format_with_notes 396 Test formatting items with notes.
class TestImportFromSession 410 Test import_from_session() method.
method TestImportFromSession.test_import_from_session 413 Test importing upcoming items from session.
method TestImportFromSession.test_import_from_nonexistent_session 422 Test importing from nonexistent session.
method TestImportFromSession.test_import_avoids_duplicates 427 Test that duplicates are not imported.
class TestCarryoverManagerIntegration 440 Integration tests for WorkCarryoverManager.
method TestCarryoverManagerIntegration.test_full_workflow 443 Test complete carryover workflow.
method TestCarryoverManagerIntegration.test_roundtrip_preservation 478 Test data survives save/load cycle.