Skip to content

Commit fad810d

Browse files
remove unnecessary arguments
1 parent dbdfa78 commit fad810d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_git_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ def test_check_and_push_branch(self, mock_confirm, mock_isatty, mock_repo):
7373
mock_origin = mock_repo_instance.remote.return_value
7474
mock_origin.push.return_value = None
7575

76-
assert check_and_push_branch(mock_repo_instance, git_remote="origin")
76+
assert check_and_push_branch(mock_repo_instance)
7777
mock_origin.push.assert_called_once_with("test-branch")
7878
mock_origin.push.reset_mock()
7979

8080
# Test when branch is already pushed
8181
mock_repo_instance.refs = [f"origin/{mock_repo_instance.active_branch.name}"]
82-
assert check_and_push_branch(mock_repo_instance, git_remote="origin")
82+
assert check_and_push_branch(mock_repo_instance)
8383
mock_origin.push.assert_not_called()
8484
mock_origin.push.reset_mock()
8585

@@ -93,7 +93,7 @@ def test_check_and_push_branch_non_tty(self, mock_isatty, mock_repo):
9393
mock_origin = mock_repo_instance.remote.return_value
9494
mock_origin.push.return_value = None
9595

96-
assert not check_and_push_branch(mock_repo_instance, git_remote="origin")
96+
assert not check_and_push_branch(mock_repo_instance)
9797
mock_origin.push.assert_not_called()
9898
mock_origin.push.reset_mock()
9999

0 commit comments

Comments
 (0)