@@ -65,6 +65,9 @@ async def test_resolve_conflict_pull_requests_adapter(
6565 # 测试 git 命令
6666 mock_subprocess_run .assert_has_calls (
6767 [
68+ mocker .call (
69+ ["git" , "checkout" , "publish/issue1" ], check = True , capture_output = True
70+ ),
6871 mocker .call (["git" , "checkout" , "master" ], check = True , capture_output = True ),
6972 mocker .call (
7073 ["git" , "switch" , "-C" , "publish/issue1" ],
@@ -185,6 +188,9 @@ async def test_resolve_conflict_pull_requests_bot(
185188 # 测试 git 命令
186189 mock_subprocess_run .assert_has_calls (
187190 [
191+ mocker .call (
192+ ["git" , "checkout" , "publish/issue1" ], check = True , capture_output = True
193+ ),
188194 mocker .call (["git" , "checkout" , "master" ], check = True , capture_output = True ),
189195 mocker .call (
190196 ["git" , "switch" , "-C" , "publish/issue1" ],
@@ -305,6 +311,9 @@ async def test_resolve_conflict_pull_requests_plugin(
305311 # 测试 git 命令
306312 mock_subprocess_run .assert_has_calls (
307313 [
314+ mocker .call (
315+ ["git" , "checkout" , "publish/issue1" ], check = True , capture_output = True
316+ ),
308317 mocker .call (["git" , "checkout" , "master" ], check = True , capture_output = True ),
309318 mocker .call (
310319 ["git" , "switch" , "-C" , "publish/issue1" ],
0 commit comments