Ignore:
Timestamp:
Jun 15, 2016 5:57:34 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.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:
1042dba
Parents:
5032ea68
Message:

Prototype DE↔perspective api based on QStandardItem.

File:
1 edited

Legend:

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

    r5032ea68 ra281ab8  
    11import sys 
    22import unittest 
    3 #from twisted.trial import unittest 
    4 #from twisted.internet import reactor, defer, interfaces, threads, protocol, error 
    53 
    64from PyQt4.QtGui import * 
     
    2725            def allowBatch(self): 
    2826                return False 
    29             def setData(self, data_list=None): 
     27            def setData(self, data_item=None): 
    3028                return None 
    3129            def title(self): 
     
    271269        """ 
    272270 
     271        message="Loading Data Complete" 
    273272        data_dict = {"a1":Data1D()} 
     273        output_data = (data_dict, message) 
    274274 
    275275        self.form.manager.add_data = MagicMock() 
     
    280280 
    281281        # Read in the file 
    282         self.form.loadComplete(data_dict, message="Loading Data Complete") 
     282        self.form.loadComplete(output_data) 
    283283 
    284284        # "Loading data complete" no longer sent in LoadFile but in callback 
Note: See TracChangeset for help on using the changeset viewer.