test modules added and modified (not working yet)
This commit is contained in:
parent
8c66f1823a
commit
c40aec192c
26
pylot/core/util/testUtils.py
Normal file
26
pylot/core/util/testUtils.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
'''
|
||||||
|
Created on 10.11.2014
|
||||||
|
|
||||||
|
@author: sebastianw
|
||||||
|
'''
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class Test(unittest.TestCase):
|
||||||
|
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def testName(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
#import sys;sys.argv = ['', 'Test.testName']
|
||||||
|
unittest.main()
|
18
pylot/core/util/testWidgets.py
Normal file
18
pylot/core/util/testWidgets.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
'''
|
||||||
|
Created on 10.11.2014
|
||||||
|
|
||||||
|
@author: sebastianw
|
||||||
|
'''
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class Test(unittest.TestCase):
|
||||||
|
|
||||||
|
|
||||||
|
def testName(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
#import sys;sys.argv = ['', 'Test.testName']
|
||||||
|
unittest.main()
|
11
testHelpForm.py
Executable file
11
testHelpForm.py
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys, time
|
||||||
|
from PySide.QtGui import QApplication
|
||||||
|
from pylot.core.util.widgets import HelpForm
|
||||||
|
|
||||||
|
app = QApplication(sys.argv)
|
||||||
|
|
||||||
|
win = HelpForm()
|
||||||
|
win.show()
|
||||||
|
app.exec_()
|
@ -11,5 +11,5 @@ app = QApplication(sys.argv)
|
|||||||
for dlg in dialogs:
|
for dlg in dialogs:
|
||||||
win = dlg()
|
win = dlg()
|
||||||
win.show()
|
win.show()
|
||||||
time.sleep(10)
|
time.sleep(1)
|
||||||
win.destroy()
|
win.destroy()
|
Loading…
Reference in New Issue
Block a user