X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Funit%2Fnetwork_services%2Ftraffic_profile%2Ftest_fixed.py;h=84843178e302fbe42495cf5dac87ca42f68050a7;hb=8d378924fb95ccb7375170dead8e356968b6dae5;hp=f4500dd38dfdabb5684965c66a2305a7502df086;hpb=5bd185f75c1c9f886c0125e8bc9d2d6f8bced138;p=yardstick.git diff --git a/tests/unit/network_services/traffic_profile/test_fixed.py b/tests/unit/network_services/traffic_profile/test_fixed.py index f4500dd38..84843178e 100644 --- a/tests/unit/network_services/traffic_profile/test_fixed.py +++ b/tests/unit/network_services/traffic_profile/test_fixed.py @@ -16,11 +16,19 @@ # from __future__ import absolute_import + import unittest import mock -from yardstick.network_services.traffic_profile.base import TrafficProfile -from yardstick.network_services.traffic_profile.fixed import FixedProfile +from tests.unit import STL_MOCKS + +STLClient = mock.MagicMock() +stl_patch = mock.patch.dict("sys.modules", STL_MOCKS) +stl_patch.start() + +if stl_patch: + from yardstick.network_services.traffic_profile.base import TrafficProfile + from yardstick.network_services.traffic_profile.fixed import FixedProfile class TestFixedProfile(unittest.TestCase):