From 8bf944f3c3b2160b2d2d47647fb6c97f9e133a88 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 20 May 2017 11:57:35 +0200 Subject: Add baro_tests as requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It also stops cloning it when building the docker container and updates the related unit tests. It bypasses the bug when importing collectd [1]. [1] https://jira.opnfv.org/browse/BAROMETER-79 Change-Id: Ie9f8ea2b3c95d6b1f5405d76b018cdcb62343a58 Signed-off-by: Cédric Ollivier --- functest/tests/unit/features/test_barometer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functest/tests') diff --git a/functest/tests/unit/features/test_barometer.py b/functest/tests/unit/features/test_barometer.py index c6512615e..8c2585d9c 100644 --- a/functest/tests/unit/features/test_barometer.py +++ b/functest/tests/unit/features/test_barometer.py @@ -16,9 +16,8 @@ import unittest import mock from functest.core import testcase -sys.modules['baro_tests'] = mock.Mock() # noqa -# pylint: disable=wrong-import-position -from functest.opnfv_tests.features import barometer +with mock.patch('functest.utils.functest_utils.get_parameter_from_yaml'): + from functest.opnfv_tests.features import barometer class BarometerTesting(unittest.TestCase): -- cgit 1.2.3-korg