diff options
Diffstat (limited to 'functest')
-rw-r--r-- | functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py | 2 | ||||
-rw-r--r-- | functest/tests/unit/vnf/router/test_cloudify_vrouter.py | 20 |
2 files changed, 13 insertions, 9 deletions
diff --git a/functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py b/functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py index b83967d3..fb20e4fd 100644 --- a/functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py +++ b/functest/opnfv_tests/openstack/snaps/snaps_suite_builder.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + # Copyright (c) 2017 Cable Television Laboratories, Inc. and others. # # This program and the accompanying materials diff --git a/functest/tests/unit/vnf/router/test_cloudify_vrouter.py b/functest/tests/unit/vnf/router/test_cloudify_vrouter.py index 4f256234..4d8e9405 100644 --- a/functest/tests/unit/vnf/router/test_cloudify_vrouter.py +++ b/functest/tests/unit/vnf/router/test_cloudify_vrouter.py @@ -18,7 +18,11 @@ from functest.opnfv_tests.vnf.router import cloudify_vrouter class CloudifyVrouterTesting(unittest.TestCase): - def setUp(self): + @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.Utilvnf') + @mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.vrouter_base' + '.Utilvnf') + @mock.patch('os.makedirs') + def setUp(self, *args): self.tenant = 'cloudify_vrouter' self.creds = {'username': 'user', @@ -41,14 +45,12 @@ class CloudifyVrouterTesting(unittest.TestCase): 'ram_min': 2048}}}} with mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.' - 'os.makedirs'), \ - mock.patch('functest.opnfv_tests.vnf.router.cloudify_vrouter.' - 'get_config', return_value={ - 'tenant_images': 'foo', - 'orchestrator': self.orchestrator, - 'vnf': self.vnf, - 'vnf_test_suite': '', - 'version': 'whatever'}): + 'get_config', return_value={ + 'tenant_images': 'foo', + 'orchestrator': self.orchestrator, + 'vnf': self.vnf, + 'vnf_test_suite': '', + 'version': 'whatever'}): self.router_vnf = cloudify_vrouter.CloudifyVrouter() |