Changeset 53c771e in sasview for src/sas/qtgui/MainWindow/UnitTesting/DroppableDataLoadWidgetTest.py
- Timestamp:
- Nov 9, 2017 8:45:20 AM (7 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:
- dd150ef
- Parents:
- d6b8a1d
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/08/17 09:22:45)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:45:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/UnitTesting/DroppableDataLoadWidgetTest.py
r464cd07 r53c771e 2 2 import unittest 3 3 4 from PyQt 4.QtGuiimport QApplication5 from PyQt 4.QtTest import QTest6 from PyQt 4import QtCore4 from PyQt5.QtWidgets import QApplication 5 from PyQt5.QtTest import QTest 6 from PyQt5 import QtCore 7 7 8 8 # set up import paths … … 62 62 63 63 drop_event = QtGui.QDropEvent(QtCore.QPoint(0,0), 64 65 66 67 64 QtCore.Qt.CopyAction, 65 self.mime_data, 66 QtCore.Qt.LeftButton, 67 QtCore.Qt.NoModifier) 68 68 69 69 self.form.dropEvent(drop_event) 70 Q tGui.qApp.processEvents()70 QApplication.processEvents() 71 71 self.assertEqual(spy_file_read.count(), 1) 72 72 self.assertIn(self.testfile, str(spy_file_read.signal(index=0)))
Note: See TracChangeset
for help on using the changeset viewer.