Ignore:
Timestamp:
Nov 9, 2017 6:45:20 AM (6 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:
dd150ef
Parents:
d6b8a1d
git-author:
Piotr Rozyczko <rozyczko@…> (11/08/17 07:22:45)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 06:45:20)
Message:

Converted unit tests

File:
1 edited

Legend:

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

    r464cd07 r53c771e  
    22import unittest 
    33 
    4 from PyQt4.QtGui import QApplication 
    5 from PyQt4.QtTest import QTest 
    6 from PyQt4 import QtCore 
     4from PyQt5.QtWidgets import QApplication 
     5from PyQt5.QtTest import QTest 
     6from PyQt5 import QtCore 
    77 
    88# set up import paths 
     
    6262 
    6363        drop_event = QtGui.QDropEvent(QtCore.QPoint(0,0), 
    64                                            QtCore.Qt.CopyAction, 
    65                                            self.mime_data, 
    66                                            QtCore.Qt.LeftButton, 
    67                                            QtCore.Qt.NoModifier) 
     64                                    QtCore.Qt.CopyAction, 
     65                                    self.mime_data, 
     66                                    QtCore.Qt.LeftButton, 
     67                                    QtCore.Qt.NoModifier) 
    6868 
    6969        self.form.dropEvent(drop_event) 
    70         QtGui.qApp.processEvents() 
     70        QApplication.processEvents() 
    7171        self.assertEqual(spy_file_read.count(), 1) 
    7272        self.assertIn(self.testfile, str(spy_file_read.signal(index=0))) 
Note: See TracChangeset for help on using the changeset viewer.