5c6b60a073e10b45c177693bce3b724982933a05,Orange/widgets/tests/base.py,WidgetLearnerTestMixin,test_output_learner,#WidgetLearnerTestMixin#,369

Before Change


        Check if learner is on output after apply
        self.assertIsNone(self.get_output("Learner"))
        self.widget.apply_button.button.click()
        self.assertIsNotNone(self.get_output("Learner"))
        self.assertIsInstance(self.get_output("Learner"), self.widget.LEARNER)

    def test_output_model(self):
        Check if model is on output after sending data and apply

After Change


        initial = self.get_output("Learner")
        self.assertIsNotNone(initial, "Does not initialize the learner output")
        self.widget.apply_button.button.click()
        newlearner = self.get_output("Learner")
        self.assertIsNot(initial, newlearner,
                         "Does not send a new learner instance on `Apply`.")
        self.assertIsNotNone(newlearner)
        self.assertIsInstance(newlearner, self.widget.LEARNER)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: biolab/orange3
Commit Name: 5c6b60a073e10b45c177693bce3b724982933a05
Time: 2016-09-16
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/tests/base.py
Class Name: WidgetLearnerTestMixin
Method Name: test_output_learner


Project Name: biolab/orange3
Commit Name: 70231fb3a7e708bf279cc5940101245ba0f06a3b
Time: 2018-12-21
Author: kovacic.andreja@gmail.com
File Name: Orange/widgets/data/tests/test_owmergedata.py
Class Name: TestOWMergeData
Method Name: test_output_merge_by_attribute_left


Project Name: biolab/orange3
Commit Name: b46ad976eff630181986af400db0c600961f33e2
Time: 2017-04-07
Author: anze.staric@gmail.com
File Name: Orange/widgets/visualize/tests/test_owscatterplot.py
Class Name: TestOWScatterPlot
Method Name: test_points_selection


Project Name: biolab/orange3
Commit Name: 453222b587dd5dcdb75386c7d528b6f52b8c32f0
Time: 2018-10-09
Author: tankovesna@hotmail.com
File Name: Orange/widgets/visualize/tests/test_owscatterplot.py
Class Name: TestOWScatterPlot
Method Name: test_auto_send_selection