From 085fd65f01f7c6c47a28a2cfa914bd3ef16b75ab Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 31 Jul 2018 10:04:45 +0200 Subject: [PATCH] tests: add test for empty report --- Orange/widgets/report/tests/test_report.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Orange/widgets/report/tests/test_report.py b/Orange/widgets/report/tests/test_report.py index f071b59e7db..96281497acd 100644 --- a/Orange/widgets/report/tests/test_report.py +++ b/Orange/widgets/report/tests/test_report.py @@ -240,6 +240,12 @@ def test_report_widgets_all(self): self.spec_widgets self._create_report(widgets, rep, None) + def test_disable_saving_on_empty(self): + """Test if save and print buttons are disabled on empty report""" + rep = OWReport.get_instance() + self.assertFalse(rep.save_button.isEnabled()) + self.assertFalse(rep.print_button.isEnabled()) + if __name__ == "__main__": unittest.main()