-
-
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.
OWSieveDiagram: Output Selected and Annotated Data
- Loading branch information
Showing
2 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Test methods with long descriptive names can omit docstrings | ||
# pylint: disable=missing-docstring | ||
from PyQt4.QtCore import QEvent, QPoint, Qt | ||
from PyQt4.QtGui import QMouseEvent | ||
|
||
from Orange.widgets.tests.base import WidgetTest, WidgetOutputsTestMixin | ||
from Orange.widgets.visualize.owsieve import OWSieveDiagram | ||
|
||
|
||
class TestOWSieveDiagram(WidgetTest, WidgetOutputsTestMixin): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
WidgetOutputsTestMixin.init(cls) | ||
|
||
cls.signal_name = "Data" | ||
cls.signal_data = cls.data | ||
|
||
def setUp(self): | ||
self.widget = self.create_widget(OWSieveDiagram) | ||
|
||
def _select_data(self): | ||
area = self.widget.areas[0] | ||
self.widget.select_area(area, QMouseEvent( | ||
QEvent.MouseButtonPress, QPoint(), Qt.LeftButton, | ||
Qt.LeftButton, Qt.KeyboardModifiers())) | ||
return [0, 4, 6, 7, 11, 17, 19, 21, 22, 24, 26, 39, 40, 43, 44, 46] |