11# Test methods with long descriptive names can omit docstrings
22# pylint: disable=missing-docstring
3+ import numpy as np
4+
35from AnyQt .QtCore import QEvent , QPoint , Qt
46from AnyQt .QtGui import QMouseEvent
57
6- from Orange .data import Table , DiscreteVariable , Domain
8+ from Orange .data import Table , DiscreteVariable , Domain , ContinuousVariable
79from Orange .widgets .tests .base import WidgetTest , WidgetOutputsTestMixin
810from Orange .widgets .visualize .owmosaic import OWMosaicDisplay , MosaicVizRank
911
@@ -26,6 +28,14 @@ def _select_data(self):
2628 Qt .LeftButton , Qt .KeyboardModifiers ()))
2729 return [2 , 3 , 9 , 23 , 29 , 30 , 34 , 35 , 37 , 42 , 47 , 49 ]
2830
31+ def test_continuous_metas (self ):
32+ """Check widget for dataset with continuous metas"""
33+ domain = Domain ([ContinuousVariable ("c1" )],
34+ metas = [ContinuousVariable ("m" )])
35+ data = Table (domain , np .arange (6 ).reshape (6 , 1 ),
36+ metas = np .arange (6 ).reshape (6 , 1 ))
37+ self .send_signal ("Data" , data )
38+
2939
3040# Derive from WidgetTest to simplify creation of the Mosaic widget, although
3141# we are actually testing the MosaicVizRank dialog and not the widget
0 commit comments