summaryrefslogtreecommitdiff
path: root/src/leap/testing
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-23 03:33:06 +0900
committerkali <kali@leap.se>2012-08-23 03:33:06 +0900
commit1da2cf6bbc64bfc624ea6fed9beb83d301f308d1 (patch)
tree4b4ab9d1fa96a4b6fb60f76e553ddc1f47c97e88 /src/leap/testing
parent5636f50cfa36bfa439651b4917b0beb3f9624ea6 (diff)
fix ad0hoc testsuite runner
Diffstat (limited to 'src/leap/testing')
-rw-r--r--src/leap/testing/test_basetest.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/leap/testing/test_basetest.py b/src/leap/testing/test_basetest.py
index 4d98cd43..14d8f8a3 100644
--- a/src/leap/testing/test_basetest.py
+++ b/src/leap/testing/test_basetest.py
@@ -13,8 +13,10 @@ from leap.testing.basetest import BaseLeapTest
_tempdir = None
-class TestCaseRunner(object):
- def run_testcase(self, testcase):
+class _TestCaseRunner(object):
+ def run_testcase(self, testcase=None):
+ if not testcase:
+ return None
loader = unittest.TestLoader()
suite = loader.loadTestsFromTestCase(testcase)
@@ -25,7 +27,7 @@ class TestCaseRunner(object):
return results
-class TestAbstractBaseLeapTest(unittest.TestCase, TestCaseRunner):
+class TestAbstractBaseLeapTest(unittest.TestCase, _TestCaseRunner):
def test_abstract_base_class(self):
class _BaseTest(BaseLeapTest):
@@ -60,7 +62,7 @@ class TestInitBaseLeapTest(BaseLeapTest):
self.assertTrue(len(self.old_path) > 1)
-class TestCleanedBaseLeapTest(unittest.TestCase, TestCaseRunner):
+class TestCleanedBaseLeapTest(unittest.TestCase, _TestCaseRunner):
def test_tempdir_is_cleaned_after_tests(self):
class _BaseTest(BaseLeapTest):