Changeset 6bd0d81 in sasview for src/sas/qtgui/Perspectives/Inversion
- Timestamp:
- Apr 26, 2018 2:11:47 PM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 6da860a
- Parents:
- d79bb7e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Inversion/UnitTesting/InversionPerspectiveTest.py
rd79bb7e r6bd0d81 154 154 self.twoDataSetState() 155 155 self.widget.calculateAllButton.click() 156 self.assertTrue(self.widget.batchResultsWindow is not None) 156 self.assertIsNotNone(self.widget.batchResultsWindow) 157 self.assertTrue(self.widget.batchResultsWindow.cmdHelp.isEnabled()) 157 158 self.assertEqual(self.widget.batchResultsWindow.tblParams.columnCount(), 9) 158 159 self.assertEqual(self.widget.batchResultsWindow.tblParams.rowCount(), 2) … … 160 161 self.widget.isBatch = False 161 162 self.widget.batchResultsWindow.close() 162 self.assert True(self.widget.batchResultsWindow is None)163 self.assertIsNone(self.widget.batchResultsWindow) 163 164 # Last test 164 165 self.widget.removeData() … … 193 194 self.widget.close() 194 195 self.assertTrue(self.widget.isMinimized()) 195 self.assert True(self.widget.dmaxWindow is None)196 self.assert True(self.widget.batchResultsWindow is None)196 self.assertIsNone(self.widget.dmaxWindow) 197 self.assertIsNone(self.widget.batchResultsWindow) 197 198 self.widget.setClosable(False) 198 199 self.assertFalse(self.widget.isClosable()) … … 283 284 self.removeAllData() 284 285 285 def notestHelp(self): 286 """ test help widget show """ 287 # TODO: test help button(s) 288 pass 289 290 def notestOpenExplorerWindow(self): 286 def testOpenExplorerWindow(self): 291 287 """ open Dx window """ 292 # TODO: test explorer functionality 288 self.assertIsNone(self.widget.dmaxWindow) 289 self.assertFalse(self.widget.explorerButton.isEnabled()) 293 290 self.widget.openExplorerWindow() 291 self.assertIsNotNone(self.widget.dmaxWindow) 294 292 self.assertTrue(self.widget.dmaxWindow.isVisible()) 293 self.assertTrue(self.widget.dmaxWindow.windowTitle() == "Dââ Explorer") 295 294 296 295
Note: See TracChangeset
for help on using the changeset viewer.