mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Add unit test for help dialog
This commit is contained in:
parent
976c671180
commit
a358d86620
1 changed files with 5 additions and 0 deletions
|
|
@ -259,6 +259,11 @@ class BeeGraphicsViewTestCase(BeeTestCase):
|
|||
self.view.on_action_save()
|
||||
save_as_mock.assert_called_once_with()
|
||||
|
||||
@patch('beeref.gui.HelpDialog.show')
|
||||
def test_on_action_help(self, show_mock):
|
||||
self.view.on_action_help()
|
||||
show_mock.assert_called_once()
|
||||
|
||||
@patch('beeref.scene.BeeGraphicsScene.clearSelection')
|
||||
@patch('PyQt6.QtWidgets.QFileDialog.getOpenFileNames')
|
||||
def test_on_action_insert_images(self, dialog_mock, clear_mock):
|
||||
|
|
|
|||
Loading…
Reference in a new issue