From eb91a43d58ee8988aa76a1d5e172ead84163ba1d Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 15 Nov 2025 18:25:36 +0100 Subject: [PATCH] Test properties of cmdObj for Push --- pkg/commands/git_commands/sync_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/commands/git_commands/sync_test.go b/pkg/commands/git_commands/sync_test.go index 4254788d8..99f934a16 100644 --- a/pkg/commands/git_commands/sync_test.go +++ b/pkg/commands/git_commands/sync_test.go @@ -100,7 +100,12 @@ func TestSyncPush(t *testing.T) { t.Run(s.testName, func(t *testing.T) { instance := buildSyncCommands(commonDeps{}) task := gocui.NewFakeTask() - s.test(instance.PushCmdObj(task, s.opts)) + cmdObj, err := instance.PushCmdObj(task, s.opts) + if err == nil { + assert.True(t, cmdObj.ShouldLog()) + assert.Equal(t, cmdObj.GetCredentialStrategy(), oscommands.PROMPT) + } + s.test(cmdObj, err) }) } }