source: sasview/src/sas/qtgui/UnitTesting/DroppableDataLoadWidgetTest.py @ 481ff26

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 481ff26 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
Line 
1import sys
2import unittest
3
4from PyQt4.QtGui import QApplication
5from PyQt4.QtTest import QTest
6from PyQt4.QtCore import Qt
7from DroppableDataLoadWidget import DroppableDataLoadWidget
8from GuiUtils import *
9
10app = QApplication(sys.argv)
11
12class DroppableDataLoadWidgetTest(unittest.TestCase):
13    '''Test the DroppableDataLoadWidget GUI'''
14    def setUp(self):
15        '''Create the GUI'''
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
36
37if __name__ == "__main__":
38    unittest.main()
Note: See TracBrowser for help on using the repository browser.