Orchestrata Ultimate › Tests › Reference › session › controller

Tests reference — tests/session/controller

tests/session/controller — 1 test modules, 22 test functions. Source tree: tests/session/controller at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.

Prose pending.

Modules

Module Tests Covers
test_git.py 22 3

Module details

tests/session/controller/test_git.py

source · 22 tests · 564 lines

Real-git-repo coverage for GitOpsMixin (session/controller/_git.py).

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

Kind Name Line Description
class TestNothingToCommit 110 L42 — early return when there is nothing tracked to commit.
method TestNothingToCommit.test_clean_tree_creates_no_commit 113
method TestNothingToCommit.test_only_untracked_files_creates_no_commit 118
class TestCommitFailure 136 L60-61 — git commit itself fails (non-zero exit).
method TestCommitFailure.test_pre_commit_hook_rejection_leaves_no_new_commit 139
class TestFileNotFoundBranches 169 L74-75 and L88-90 — git subprocess cannot even be spawned.
method TestFileNotFoundBranches.test_commit_and_push_swallows_missing_root 172
method TestFileNotFoundBranches.test_current_branch_returns_none_on_missing_root 177
class TestCurrentBranchHappyPath 183 Sanity check for the branch-name success path (already covered
method TestCurrentBranchHappyPath.test_current_branch_returns_real_branch_name 188
class TestCreateSessionTag 193 _create_session_tag happy path and FileNotFoundError branch.
method TestCreateSessionTag.test_create_tag_succeeds 196
method TestCreateSessionTag.test_create_tag_returns_false_when_git_missing 209
class TestPushSessionTag 213 _push_session_tag success/failure branches.
method TestPushSessionTag.test_push_tag_succeeds_with_local_remote 242
method TestPushSessionTag.test_push_tag_returns_false_when_no_remote 268
method TestPushSessionTag.test_push_tag_returns_false_when_git_missing 271
class TestCheckGitClean 275 _check_git_clean branches.
method TestCheckGitClean.test_clean_tree_returns_true 278
method TestCheckGitClean.test_only_untracked_returns_true 281
method TestCheckGitClean.test_tracked_modification_returns_false 285
method TestCheckGitClean.test_check_clean_returns_true_when_git_missing 289
class TestCommitAndPushBranches 293 Remaining _commit_and_push_changes branches.
method TestCommitAndPushBranches.test_full_commit_and_push_succeeds_with_local_remote 321
method TestCommitAndPushBranches.test_push_failure_logs_warning 350
class TestGitLabTokenNotPassedToPush 370 GITLAB_TOKEN must be stripped from the push environment.
method TestGitLabTokenNotPassedToPush.test_push_does_not_see_gitlab_token 379
method TestGitLabTokenNotPassedToPush.test_tag_push_does_not_see_gitlab_token 413
class TestExplicitRootPushGate 442 fix/session-root (RUL-011), change E: a controller whose root was
method TestExplicitRootPushGate.test_explicit_root_still_pushes 495
method TestExplicitRootPushGate.test_inferred_root_commits_but_does_not_push 526
method TestExplicitRootPushGate.test_default_explicit_root_true_matches_bare_constructor_call 559 Every existing bare SessionController(root) call (the session