From b5ced1899ff13796eb0836ca75fddd1c787d8650 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 23 May 2017 18:06:47 +0200 Subject: Rename the class TestSuiteRunner to Suite MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It conforms with [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/35211/ Change-Id: I11bbdcd63a1691835fb7c6198549edbaf6b758a1 Signed-off-by: Cédric Ollivier --- functest/core/unit.py | 4 ++-- functest/opnfv_tests/openstack/snaps/snaps_test_runner.py | 2 +- 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(), -- cgit 1.2.3-korg