Skip to content

Commit ca91b94

Browse files
committed
Remove obsolete test for cancel option in empty cherry-pick handling and unused imports
1 parent d861099 commit ca91b94

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

tests/test_logview_dragdrop.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -649,18 +649,6 @@ def test_handleEmptyCherryPick_allow_empty(self):
649649
self.assertTrue(result)
650650
mock_allow.assert_called_once()
651651

652-
def test_handleEmptyCherryPick_cancel(self):
653-
"""Test handling empty cherry-pick with cancel option"""
654-
with patch.object(QMessageBox, 'question', return_value=QMessageBox.Cancel):
655-
with patch('qgitc.gitutils.Git.cherryPickAbort') as mock_abort:
656-
result = self.logview._handleEmptyCherryPick(
657-
self.gitDir.name, "abc123",
658-
"git commit --allow-empty", None
659-
)
660-
661-
self.assertTrue(result)
662-
mock_abort.assert_called_once()
663-
664652
def test_handleEmptyCherryPick_returns_false_for_non_empty_error(self):
665653
"""Test that _handleEmptyCherryPick returns False for non-empty errors"""
666654
result = self.logview._handleEmptyCherryPick(

tests/test_pickbranchwindow.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import os
33
from unittest.mock import Mock, patch
44

5-
from PySide6.QtCore import QEvent, Qt
6-
from PySide6.QtGui import QMouseEvent
75
from PySide6.QtWidgets import QMessageBox
86

97
from qgitc.gitutils import Git

0 commit comments

Comments
 (0)