-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5472 from ales-erjavec/fixes/orange-canvas-core-m…
…in-req [FIX] Bump orange-canvas-core minimum version requirement
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# pylint: disable=all | ||
from unittest.mock import patch | ||
|
||
from Orange.canvas.mainwindow import MainWindow, OUserSettingsDialog | ||
from Orange.widgets.tests.base import GuiTest | ||
|
||
|
||
class TestMainWindow(GuiTest): | ||
def test_settings_dialog(self): | ||
mw = MainWindow() | ||
with patch.object(OUserSettingsDialog, "exec", lambda self: 0), \ | ||
patch.object(OUserSettingsDialog, "show", lambda self: None): | ||
mw.open_canvas_settings() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters