Skip to content

Commit

Permalink
tests: add test for empty report
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcv committed Jul 31, 2018
1 parent ba02a6d commit 085fd65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Orange/widgets/report/tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 085fd65

Please sign in to comment.