Fixing imports and adding test checking classes
This commit is contained in:
parent
29f6a260e4
commit
d39d8d6b5e
1 changed files with 15 additions and 1 deletions
|
|
@ -1,9 +1,23 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import unittest
|
import unittest
|
||||||
from PySide.QtCore import QObject, QState, QFinalState, SIGNAL, QCoreApplication, QTimer, QStateMachine, QSignalTransition, QVariant, QParallelAnimationGroup, QPropertyAnimation
|
from PySide.QtCore import QObject, QState, QFinalState, SIGNAL
|
||||||
|
from PySide.QtCore import QTimer, QStateMachine
|
||||||
|
from PySide.QtCore import QParallelAnimationGroup
|
||||||
|
|
||||||
from helper import UsesQCoreApplication
|
from helper import UsesQCoreApplication
|
||||||
|
|
||||||
|
|
||||||
|
class StateMachineTest(unittest.TestCase):
|
||||||
|
'''Check presence of State Machine classes'''
|
||||||
|
|
||||||
|
def testBasic(self):
|
||||||
|
'''State machine classes'''
|
||||||
|
import PySide.QtCore
|
||||||
|
PySide.QtCore.QSignalTransition
|
||||||
|
PySide.QtCore.QPropertyAnimation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QStateMachineTest(UsesQCoreApplication):
|
class QStateMachineTest(UsesQCoreApplication):
|
||||||
|
|
||||||
def cb(self, *args):
|
def cb(self, *args):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue