diff options
author | valentin boucher <valentin.boucher@orange.com> | 2017-05-24 09:21:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-24 09:21:12 +0000 |
commit | 7c99fedf61ceba4a045b85dc8f4c889e86900f7f (patch) | |
tree | fbaffa5062d90d0a2a7d7efb04e1a98e47992f65 /functest | |
parent | 39737dbdcebee2535780d799174b8195ef8cf6d8 (diff) | |
parent | b5ced1899ff13796eb0836ca75fddd1c787d8650 (diff) |
Merge "Rename the class TestSuiteRunner to Suite"
Diffstat (limited to 'functest')
-rw-r--r-- | functest/core/unit.py | 4 | ||||
-rw-r--r-- | functest/opnfv_tests/openstack/snaps/snaps_test_runner.py | 2 | ||||
-rw-r--r-- | functest/tests/unit/core/test_unit.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/functest/core/unit.py b/functest/core/unit.py index efcef7b6..6d8b5879 100644 --- a/functest/core/unit.py +++ b/functest/core/unit.py @@ -18,14 +18,14 @@ import six from functest.core import testcase -class PyTestSuiteRunner(testcase.TestCase): +class Suite(testcase.TestCase): """ This superclass is designed to execute pre-configured unittest.TestSuite() objects """ def __init__(self, **kwargs): - super(PyTestSuiteRunner, self).__init__(**kwargs) + super(Suite, self).__init__(**kwargs) self.suite = None self.logger = logging.getLogger(__name__) diff --git a/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py b/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py index c180df61..2b98a202 100644 --- a/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py +++ b/functest/opnfv_tests/openstack/snaps/snaps_test_runner.py @@ -16,7 +16,7 @@ from snaps.openstack import create_flavor from snaps.openstack.tests import openstack_tests -class SnapsTestRunner(unit.PyTestSuiteRunner): +class SnapsTestRunner(unit.Suite): """ This test executes the SNAPS Python Tests """ diff --git a/functest/tests/unit/core/test_unit.py b/functest/tests/unit/core/test_unit.py index c11d8853..f86ea8d3 100644 --- a/functest/tests/unit/core/test_unit.py +++ b/functest/tests/unit/core/test_unit.py @@ -19,7 +19,7 @@ from functest.core import testcase class PyTestSuiteRunnerTesting(unittest.TestCase): def setUp(self): - self.psrunner = unit.PyTestSuiteRunner() + self.psrunner = unit.Suite() @mock.patch('unittest.TestLoader') def _test_run(self, mock_class=None, result=mock.Mock(), |