Changeset 2155824 in sasview
- Timestamp:
- Apr 6, 2017 5:58:54 AM (8 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:
- d7ff531
- Parents:
- 454670d
- Location:
- src/sas/qtgui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingLogicTest.py
r0268aed r2155824 104 104 data, False, None) 105 105 106 new_plot = self.logic.new1DPlot(return_data=return_data )106 new_plot = self.logic.new1DPlot(return_data=return_data, tab_id=0) 107 107 108 108 self.assertIsInstance(new_plot, Data1D) -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingPerspectiveTest.py
r811bec1 r2155824 91 91 self.widget.setData([item]) 92 92 93 # Look at the data in tab94 self.assertEqual(self.widget._model_item, item)95 96 93 # First tab should accept data 97 94 self.assertEqual(len(self.widget.tabs), 1) … … 103 100 self.assertEqual(len(self.widget.tabs), 2) 104 101 102 # Add two more items in a list 103 self.widget.setData([item, item]) 104 105 # Check for 4 tabs 106 self.assertEqual(len(self.widget.tabs), 4) 107 105 108 106 109 if __name__ == "__main__": -
src/sas/qtgui/Perspectives/Fitting/UnitTesting/FittingWidgetTest.py
r6fd4e36 r2155824 73 73 item = QtGui.QStandardItem("test") 74 74 75 widget_with_data = FittingWidget(dummy_manager(), data= [item], id=3)75 widget_with_data = FittingWidget(dummy_manager(), data=item, id=3) 76 76 77 77 self.assertEqual(widget_with_data.data, data) -
src/sas/qtgui/UnitTesting/DataExplorerTest.py
r0268aed r2155824 418 418 419 419 # Expected two status bar updates 420 self.assertEqual(spy_status_update.count(), 1)420 self.assertEqual(spy_status_update.count(), 2) 421 421 self.assertIn(filename[0], str(spy_status_update.called()[0]['args'][0])) 422 422 -
src/sas/qtgui/UnitTesting/GuiManagerTest.py
r6fd4e36 r2155824 148 148 self.manager.processVersion = MagicMock() 149 149 version = {'update_url' : 'http://www.sasview.org/sasview.latestversion', 150 'version' : '4. 0.1',150 'version' : '4.1.0', 151 151 'download_url': 'https://github.com/SasView/sasview/releases'} 152 152 self.manager.checkUpdate()
Note: See TracChangeset
for help on using the changeset viewer.