diff options
author | Ivan Alejandro <ivanalejandro0@yahoo.com.ar> | 2013-06-25 16:53:36 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@yahoo.com.ar> | 2013-06-25 16:53:36 -0300 |
commit | 04a0fa945a0ec239960255bc2a0f2f01a5b4a224 (patch) | |
tree | 607027375791754a79b99838de5ace879ae6cd21 /src/leap/util/pyside_tests_helper.py | |
parent | a5a51bcc1573d7b7cf281a4d8ac142705bd227d0 (diff) | |
parent | 77d9434c4a92528e13b008a50dfbcb5f2f1456a4 (diff) |
Merge remote-tracking branch 'chiiph/feature/add_abstractbootstrapper_test' into develop
Diffstat (limited to 'src/leap/util/pyside_tests_helper.py')
-rw-r--r-- | src/leap/util/pyside_tests_helper.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/util/pyside_tests_helper.py b/src/leap/util/pyside_tests_helper.py index a010934a..5c0eb8d6 100644 --- a/src/leap/util/pyside_tests_helper.py +++ b/src/leap/util/pyside_tests_helper.py @@ -15,14 +15,17 @@ except ImportError: else: has_gui = True + def adjust_filename(filename, orig_mod_filename): dirpath = os.path.dirname(os.path.abspath(orig_mod_filename)) return os.path.join(dirpath, filename) + class NoQtGuiError(Exception): def __init__(self): Exception.__init__(self, 'No QtGui found') + class BasicPySlotCase(object): '''Base class that tests python slots and signal emissions. @@ -75,7 +78,6 @@ if has_gui: del self.app super(UsesQApplication, self).tearDown() - class TimedQApplication(unittest.TestCase): '''Helper class with timed QApplication exec loop''' @@ -97,13 +99,14 @@ else: class UsesQApplication(unittest.TestCase): def setUp(self): raise NoQtGuiError() + class TimedQapplication(unittest.TestCase): def setUp(self): raise NoQtGuiError() - _core_instance = None + class UsesQCoreApplication(unittest.TestCase): '''Helper class for test cases that require an QCoreApplication Just connect or call self.exit_app_cb. When called, will ask |