diff options
author | valentin boucher <valentin.boucher@orange.com> | 2017-05-22 13:09:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 13:09:00 +0000 |
commit | 7e6191e9d4f3734efb1aacf2ded8c20b16aeb4af (patch) | |
tree | 77490051cde3450a57e17366fc2d8b2f3a7a05de /functest/tests/unit | |
parent | 84bd5c62dd21300e96979217dee1e31d75c439ca (diff) | |
parent | 8bf944f3c3b2160b2d2d47647fb6c97f9e133a88 (diff) |
Merge "Add baro_tests as requirements"
Diffstat (limited to 'functest/tests/unit')
-rw-r--r-- | functest/tests/unit/features/test_barometer.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/functest/tests/unit/features/test_barometer.py b/functest/tests/unit/features/test_barometer.py index c6512615..8c2585d9 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): |