test: 5 final agents — fix 40+ failures, llm_analysis 80%+, git_plugin 90%+, routes 90-98%, services 98-100%, core 90-100%. Coverage: real 87%, target 95%+
This commit is contained in:
@@ -283,7 +283,7 @@ class TestEnsureGitflowMissingMain:
|
||||
repo.create_head.assert_any_call("main", repo.head.commit)
|
||||
|
||||
def test_active_branch_raises_no_checkout(self):
|
||||
"""active_branch.name raises → current_branch=None, no checkout attempt."""
|
||||
"""active_branch.name raises → current_branch=None, checkout dev attempted."""
|
||||
from src.services.git._branch import GitServiceBranchMixin
|
||||
repo = MagicMock()
|
||||
main_head = MagicMock()
|
||||
@@ -297,7 +297,6 @@ class TestEnsureGitflowMissingMain:
|
||||
repo.remote.return_value = origin
|
||||
svc = TestableGitBranch(repo)
|
||||
svc._ensure_gitflow_branches(repo, 1)
|
||||
# If current_branch is None, the != "dev" check is True (None != "dev")
|
||||
# and git.checkout("dev") is attempted and fails
|
||||
repo.git.checkout.assert_not_called()
|
||||
# With current_branch=None, None != "dev" is True, so checkout("dev") is called
|
||||
repo.git.checkout.assert_called_once_with("dev")
|
||||
# #endregion Test.Git.Branch.Edge
|
||||
|
||||
Reference in New Issue
Block a user