ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since f0f309d was
481ff26,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 8 years ago
|
Modified Data Explorer slightly
|
-
Property mode set to
100755
|
File size:
997 bytes
|
Rev | Line | |
---|
[f82ab8c] | 1 | import sys |
---|
| 2 | import unittest |
---|
| 3 | |
---|
| 4 | from PyQt4.QtGui import QApplication |
---|
| 5 | from PyQt4.QtTest import QTest |
---|
| 6 | from PyQt4.QtCore import Qt |
---|
| 7 | from DroppableDataLoadWidget import DroppableDataLoadWidget |
---|
[481ff26] | 8 | from GuiUtils import * |
---|
[f82ab8c] | 9 | |
---|
| 10 | app = QApplication(sys.argv) |
---|
| 11 | |
---|
| 12 | class DroppableDataLoadWidgetTest(unittest.TestCase): |
---|
| 13 | '''Test the DroppableDataLoadWidget GUI''' |
---|
| 14 | def setUp(self): |
---|
| 15 | '''Create the GUI''' |
---|
[481ff26] | 16 | class dummy_manager(object): |
---|
| 17 | def communicator(self): |
---|
| 18 | return Communicate() |
---|
| 19 | def perspective(self): |
---|
| 20 | return MyPerspective() |
---|
| 21 | |
---|
| 22 | self.form = DroppableDataLoadWidget(None, guimanager=dummy_manager()) |
---|
| 23 | # create dummy mime objects |
---|
| 24 | |
---|
| 25 | def testDragIsOK(self): |
---|
| 26 | """ |
---|
| 27 | Test the item being dragged over the load widget |
---|
| 28 | """ |
---|
| 29 | pass |
---|
| 30 | |
---|
| 31 | def testDropEvent(self): |
---|
| 32 | """ |
---|
| 33 | Test what happens if an object is dropped onto the load widget |
---|
| 34 | """ |
---|
| 35 | pass |
---|
[f82ab8c] | 36 | |
---|
| 37 | if __name__ == "__main__": |
---|
| 38 | unittest.main() |
---|
Note: See
TracBrowser
for help on using the repository browser.