aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-06-12 16:23:38 +0200
committerManuel Buil <mbuil@suse.com>2018-06-12 16:23:38 +0200
commit8a3233fe8ecc6f3f6af2b32613c09938d74e6053 (patch)
treefacbbeb58c8297738d40a54d98b18b0f311a8fd5
parent742a1237a5511930ff2726819e6fd2a320e7fd06 (diff)
Bug fix: pass variables in the class constructor
The Testcase class requires parameters in the constructor. We should pass them or otherwise we get an error: https://github.com/opnfv/functest-xtesting/blob/master/xtesting/core/testcase.py#L48 ERROR: TypeError: "__init__() got an unexpected keyword argument 'project_name'" Change-Id: I6f4b62b7ff201bf6878004e3fb452778c6b55f0e Signed-off-by: Manuel Buil <mbuil@suse.com>
-rw-r--r--sfc/tests/functest/run_sfc_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfc/tests/functest/run_sfc_tests.py b/sfc/tests/functest/run_sfc_tests.py
index 1c1dc455..6fe211bf 100644
--- a/sfc/tests/functest/run_sfc_tests.py
+++ b/sfc/tests/functest/run_sfc_tests.py
@@ -29,8 +29,8 @@ COMMON_CONFIG = sfc_config.CommonConfig()
class SfcFunctest(testcase.TestCase):
- def __init__(self):
- super(SfcFunctest, self).__init__()
+ def __init__(self, **kwargs):
+ super(SfcFunctest, self).__init__(**kwargs)
self.cleanup_flag = True
if '--nocleanup' in sys.argv: