From ccc675b3095271d59dba3a49c0b116d0ff6c6bfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Sat, 8 Apr 2017 12:05:58 +0200 Subject: [PATCH] Rename test_ims_base.by to test_ims_base.py MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It fixes errors when importing modules too. It completes the review "Added test case for opera vims" [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/30681 Change-Id: Ib3cf9c66eb9a2c25ff4fb58d48e4b15a44556f7c Signed-off-by: Cédric Ollivier --- .../unit/opnfv_tests/vnf/ims/{test_ims_base.by => test_ims_base.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename functest/tests/unit/opnfv_tests/vnf/ims/{test_ims_base.by => test_ims_base.py} (89%) diff --git a/functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.by b/functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.py similarity index 89% rename from functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.by rename to functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.py index 9440bcdf..e283199c 100644 --- a/functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.by +++ b/functest/tests/unit/opnfv_tests/vnf/ims/test_ims_base.py @@ -10,7 +10,7 @@ import unittest import mock -from functest.opnfv_tests.vnf.ims import ims_base +from functest.opnfv_tests.vnf.ims import clearwater_ims_base as ims_base class ClearwaterOnBoardingBaseTesting(unittest.TestCase): @@ -38,8 +38,8 @@ class ClearwaterOnBoardingBaseTesting(unittest.TestCase): self.mock_post_200.configure_mock(**attrs) def test_create_ellis_number_failure(self): - with mock.patch('functest.opnfv_tests.vnf.ims.ims_base.' - 'requests.post', + with mock.patch('functest.opnfv_tests.vnf.ims.' + 'clearwater_ims_base.requests.post', return_value=self.mock_post_500), \ self.assertRaises(Exception) as context: self.ims_vnf.create_ellis_number() -- 2.16.6