Changeset 965fbd8 in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Feb 2, 2017 9:09:39 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
b789967
Parents:
3bdbfcc
Message:

More merge related fixes

Location:
src/sas/qtgui/UnitTesting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/UnitTesting/DataExplorerTest.py

    rcad617b r965fbd8  
    592592        p_file="cyl_400_20.txt" 
    593593        output_object = loader.load(p_file) 
    594         new_data = [manager.create_gui_data(output_object, p_file)] 
     594        output_item = QtGui.QStandardItem() 
     595        new_data = [(output_item, manager.create_gui_data(output_object, p_file))] 
    595596 
    596597        # Mask plotting 
  • src/sas/qtgui/UnitTesting/GuiUtilsTest.py

    rb46f285 r965fbd8  
    159159        # Make sure only the checked data is present 
    160160        # FRIDAY IN 
    161         self.assertIn(test_list0, plot_list) 
     161        self.assertIn(test_list0, plot_list[0]) 
    162162        # SATURDAY IN 
    163         self.assertIn(test_list1, plot_list) 
     163        self.assertIn(test_list1, plot_list[1]) 
    164164        # MONDAY NOT IN 
    165         self.assertNotIn(test_list2, plot_list) 
     165        self.assertNotIn(test_list2, plot_list[0]) 
     166        self.assertNotIn(test_list2, plot_list[1]) 
    166167 
    167168    def testInfoFromData(self): 
  • src/sas/qtgui/UnitTesting/Plotter2DTest.py

    • Property mode changed from 100755 to 100644
    r3bdbfcc r965fbd8  
    100100 
    101101        self.assertEqual(self.plotter.cmap, "jet") 
    102         self.assertEqual(self.plotter.vmin, -0.1) 
    103         self.assertEqual(self.plotter.vmax, 0.1) 
     102        self.assertAlmostEqual(self.plotter.vmin, 0.1, 6) 
     103        self.assertAlmostEqual(self.plotter.vmax, 1e+20, 6) 
    104104 
    105105    def testOnToggleScale(self): 
Note: See TracChangeset for help on using the changeset viewer.