File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Orange/widgets/unsupervised/tests Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 44import numpy as np
55from scipy .sparse import csr_matrix , csc_matrix
66
7- from Orange .data import Table
7+ from Orange .data import Table , Domain
88from Orange .clustering import DBSCAN
99from Orange .preprocess import Normalize , Continuize , SklImpute
1010from Orange .widgets .tests .base import WidgetTest
@@ -56,6 +56,16 @@ def test_bad_input(self):
5656 self .send_signal (w .Inputs .data , self .iris )
5757 self .assertFalse (w .Error .not_enough_instances .is_shown ())
5858
59+ new_domain = Domain ([], self .iris .domain .class_vars ,
60+ metas = self .iris .domain .attributes )
61+ iris_all_metas = self .iris .transform (new_domain )
62+ self .send_signal (w .Inputs .data , iris_all_metas )
63+ self .assertTrue (w .Error .no_features .is_shown ())
64+
65+ self .send_signal (w .Inputs .data , self .iris )
66+ self .assertFalse (w .Error .no_features .is_shown ())
67+
68+
5969 def test_data_none (self ):
6070 w = self .widget
6171
You can’t perform that action at this time.
0 commit comments