Ignore:
Timestamp:
Nov 9, 2017 8:41:56 AM (7 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:
4992ff2
Parents:
cee5c78
git-author:
Piotr Rozyczko <rozyczko@…> (10/27/17 08:49:35)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:56)
Message:

Update for unit tests and minor functionality quirks

File:
1 edited

Legend:

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

    • Property mode changed from 100644 to 100755
    rf7d14a1 r7fb471d  
    55from PyQt4.QtTest import QTest 
    66from PyQt4.QtCore import * 
    7 from mock import MagicMock 
    8 from mock import patch 
     7from unittest.mock import MagicMock 
     8from unittest.mock import patch 
    99from mpl_toolkits.mplot3d import Axes3D 
    1010 
     
    157157 
    158158        expected_list = [0, 0, 33, 66, -1] 
    159         spied_list = [spy_progress_bar_update.called()[i]['args'][0] for i in xrange(5)] 
     159        spied_list = [spy_progress_bar_update.called()[i]['args'][0] for i in range(5)] 
    160160        self.assertEqual(expected_list, spied_list) 
    161161         
     
    325325        self.form.cbSelect.setCurrentIndex(1) 
    326326 
     327        self.form.show() 
     328        app.exec_() 
     329 
    327330        # Test the current selection 
    328331        item1D = self.form.model.item(0) 
     
    503506        # We don't know the data ID, so need to iterate over dict 
    504507        data_dict = spy_data_received.called()[0]['args'][0] 
    505         for data_key, data_value in data_dict.iteritems(): 
     508        for data_key, data_value in data_dict.items(): 
    506509            self.assertIsInstance(data_value, Data1D) 
    507510 
Note: See TracChangeset for help on using the changeset viewer.