Changeset c02721c4 in sasview for src/sas/qtgui/Calculators/UnitTesting/GenericScatteringCalculatorTest.py
- Timestamp:
- Mar 29, 2019 8:36:51 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_opencl
- Children:
- 6edd344
- Parents:
- c7e73e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/UnitTesting/GenericScatteringCalculatorTest.py
r8137a02 rc02721c4 186 186 # wait a bit for data to be loaded 187 187 time.sleep(0.1) 188 QtWidgets.qApp.processEvents() 189 188 190 # check updated values in ui, read from loaded file 189 191 self.assertEqual(self.widget.txtData.text(), 'sld_file.sld') … … 250 252 251 253 time.sleep(1) 254 QtWidgets.qApp.processEvents() 255 252 256 # check updated values in ui, read from loaded file 253 257 # TODO to be changed … … 310 314 self.assertEqual(self.widget.cmdLoad.text(), 'Loading...') 311 315 time.sleep(2) 316 QtWidgets.qApp.processEvents() 312 317 313 318 self.assertEqual(self.widget.txtData.text(), 'A_Raw_Example-1.omf') … … 396 401 self.assertEqual(self.widget.cmdLoad.text(), 'Loading...') 397 402 time.sleep(1) 403 QtWidgets.qApp.processEvents() 398 404 399 405 self.assertTrue(self.widget.cmdDraw.isEnabled()) … … 417 423 418 424 time.sleep(0.1) 425 QtWidgets.qApp.processEvents() 419 426 420 427 filename1 = "test" 421 428 QtWidgets.QFileDialog.getSaveFileName = MagicMock(return_value=[filename1, '']) 422 429 423 QTest.mouseClick(self.widget.cmdSave, Qt.LeftButton)430 #QTest.mouseClick(self.widget.cmdSave, Qt.LeftButton) 424 431 self.widget.onSaveFile() 432 QtWidgets.qApp.processEvents() 433 425 434 self.assertTrue(os.path.isfile(filename1 + '.sld')) 426 435 self.assertTrue(os.path.getsize(filename1 + '.sld') > 0)
Note: See TracChangeset
for help on using the changeset viewer.