Changeset 144fe21 in sasview for src/sas/qtgui/Perspectives/Inversion/UnitTesting/InversionPerspectiveTest.py
- Timestamp:
- Jul 26, 2018 5:30:15 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- dc71408
- Parents:
- e793f62
- git-author:
- Piotr Rozyczko <rozyczko@…> (07/26/18 05:28:51)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (07/26/18 05:30:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/UnitTesting/InversionPerspectiveTest.py
- Property mode changed from 100755 to 100644
r72ecbdf2 r144fe21 12 12 import sas.qtgui.Utilities.GuiUtils as GuiUtils 13 13 14 #if not QtWidgets.QApplication.instance():15 app = QtWidgets.QApplication(sys.argv)14 if not QtWidgets.QApplication.instance(): 15 app = QtWidgets.QApplication(sys.argv) 16 16 17 17 … … 19 19 HELP_DIRECTORY_LOCATION = "html" 20 20 communicate = Communicate() 21 22 21 def communicator(self): 23 22 return self.communicate … … 29 28 def setUp(self): 30 29 """ Create the InversionWindow """ 31 self.widget = InversionWindow(dummy_manager()) 30 31 self.widget = InversionWindow(parent=dummy_manager()) 32 self.widget._parent = QtWidgets.QMainWindow() 33 self.widget.showBatchOutput = MagicMock() 34 self.widget.startThread = MagicMock() 35 self.widget.startThreadAll = MagicMock() 32 36 self.widget.show() 37 33 38 self.fakeData1 = GuiUtils.HashableStandardItem("A") 34 39 self.fakeData2 = GuiUtils.HashableStandardItem("B") … … 96 101 self.assertTrue(self.widget.allowBatch()) 97 102 self.assertFalse(self.widget.isBatch) 98 self.assertIsNone(self.widget.batchResultsWindow)99 103 self.assertFalse(self.widget.calculateAllButton.isEnabled()) 100 104 self.assertEqual(len(self.widget.batchResults), 0) 101 105 self.assertEqual(len(self.widget.batchComplete), 0) 102 106 self.widget.closeBatchResults() 103 self.assertIsNone(self.widget.batchResultsWindow)104 107 105 108 def zeroDataSetState(self): … … 206 209 self.assertTrue(self.widget.isMinimized()) 207 210 self.assertIsNone(self.widget.dmaxWindow) 208 self.assertIsNone(self.widget.batchResultsWindow)209 211 self.widget.setClosable(False) 210 212 self.assertFalse(self.widget.isClosable())
Note: See TracChangeset
for help on using the changeset viewer.