Orchestrata Ultimate › Tests › Reference › session › test_session_session_error_paths

Tests reference — tests/session/test_session_session_error_paths.py

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

Prose pending.

tests/session/test_session_session_error_paths.py

source · 23 tests · 228 lines

Coverage for SessionController error/edge paths.

Covers: session.context, session.exceptions, session.models, session.session

Kind Name Line Description
class TestResumeNoContext 34
method TestResumeNoContext.test_resume_no_context_file 35
method TestResumeNoContext.test_resume_no_context_with_seq 41
class TestAutoCloseNoContext 47
method TestAutoCloseNoContext.test_begin_on_blank_root 48 begin() triggers _auto_close_unclosed which hits FileNotFoundError.
class TestNoGitBinary 70 Pass an env= with a stripped PATH to methods that exec git/pytest.
method TestNoGitBinary.test_get_test_state_no_executable 73
method TestNoGitBinary.test_run_tests_no_executable 77
method TestNoGitBinary.test_check_git_clean_no_git 81
method TestNoGitBinary.test_create_session_tag_no_git 86
method TestNoGitBinary.test_push_session_tag_no_git 96
method TestNoGitBinary.test_find_changelog_no_git 106
class TestValidateAndEnd 111
method TestValidateAndEnd.test_validate_and_end_no_active 112
method TestValidateAndEnd.test_validate_checklist_begins_flag_failures 116
method TestValidateAndEnd.test_validate_and_end_raises_with_failures 123
class TestEndNoActive 130
method TestEndNoActive.test_end_returns_none_when_no_active 131
method TestEndNoActive.test_log_work_without_active_no_op 134
method TestEndNoActive.test_log_artifact_without_active_no_op 137
method TestEndNoActive.test_log_choice_without_active_no_op 140
method TestEndNoActive.test_log_achievement_without_active_no_op 143
method TestEndNoActive.test_set_handoff_without_active_no_op 146
class TestGetSessionAndListing 150
method TestGetSessionAndListing.test_get_session_not_found 151
method TestGetSessionAndListing.test_all_sessions_empty 154
method TestGetSessionAndListing.test_session_count_initial 158
class TestGitRepoEndToEnd 163
method TestGitRepoEndToEnd.test_full_lifecycle_with_git 164 Exercise the git-tag creation/push paths with a real repo.
method TestGitRepoEndToEnd.test_check_git_clean_with_dirty_tracked 203