0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4,Orange/widgets/tests/base.py,ProjectionWidgetTestMixin,test_invalidated_embedding,#ProjectionWidgetTestMixin#Any#,702
Before Change
self.widget.graph.update_coordinates = Mock()
self.widget.graph.update_point_props = Mock()
self.send_signal(self.widget.Inputs.data, self.data)
if self.widget.isBlocking():
spy = QSignalSpy(self.widget.blockingStateChanged)
self.assertTrue(spy.wait(timeout))
self.widget.graph.update_coordinates.assert_called()
self.widget.graph.update_point_props.assert_called()
self.widget.graph.update_coordinates.reset_mock()
After Change
self.send_signal(self.widget.Inputs.data_subset, table[::30])
self.assertEqual(len(self.widget.subset_data), 5)
def test_invalidated_embedding(self, timeout=DEFAULT_TIMEOUT):
Check if graph has been replotted when sending same data
self.widget.graph.update_coordinates = Mock()
self.widget.graph.update_point_props = Mock()
self.send_signal(self.widget.Inputs.data, self.data)
self.wait_until_finished(timeout=timeout)
self.widget.graph.update_coordinates.assert_called()
self.widget.graph.update_point_props.assert_called()
self.widget.graph.update_coordinates.reset_mock()
self.widget.graph.update_point_props.reset_mock()
self.send_signal(self.widget.Inputs.data, self.data)
self.wait_until_finished(timeout=timeout)
self.widget.graph.update_coordinates.assert_not_called()
self.widget.graph.update_point_props.assert_called_once()
In pattern: SUPERPATTERN
Frequency: 10
Non-data size: 9
Instances
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_invalidated_embedding
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_invalidated_embedding
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_default_attrs
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: WidgetOutputsTestMixin
Method Name: test_outputs
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_send_report
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_attr_label_metas
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_sparse_data
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_hidden_effective_variables
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_plot_once
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_class_density
Project Name: biolab/orange3
Commit Name: 0dc06882c5e2a52d2f62d501bc3f4fba1eb6f1a4
Time: 2019-12-27
Author: p.godec9@gmail.com
File Name: Orange/widgets/tests/base.py
Class Name: ProjectionWidgetTestMixin
Method Name: test_datasets