From 3fbd1085b8fe00e05b4bd71f0e27798242d3e159 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 30 Nov 2019 10:44:46 +0100 Subject: Postprocess the TestAPI href returned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [1] returned http://localhost:8082 [1] https://build.opnfv.org/ci/job/airship-opnfv-functest-healthcheck-latest-connection_check-run/58/console Change-Id: Ifc0e37a97442193a77762ecc2928b100e27028cd Signed-off-by: Cédric Ollivier (cherry picked from commit 740afc884b2af2f068945e7a9963d5e4b66a1a0e) --- xtesting/tests/unit/utils/test_decorators.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xtesting/tests/unit/utils/test_decorators.py') diff --git a/xtesting/tests/unit/utils/test_decorators.py b/xtesting/tests/unit/utils/test_decorators.py index c08a7ea3..2810df15 100644 --- a/xtesting/tests/unit/utils/test_decorators.py +++ b/xtesting/tests/unit/utils/test_decorators.py @@ -85,6 +85,8 @@ class DecoratorsTesting(unittest.TestCase): test = self._get_testcase() self.assertEqual(test.run(), testcase.TestCase.EX_OK) + @mock.patch('os.path.join') + @mock.patch('re.sub') @mock.patch('requests.post') def test_http_shema(self, *args): os.environ['TEST_DB_URL'] = 'http://127.0.0.1' -- cgit 1.2.3-korg