From a90db151f17971acf1caab5183c127ac134a91fa Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 30 Nov 2019 13:08:20 +0100 Subject: Mock os.path.join in push_to_db MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8d0c8f9ef4688454a6d2992ab1a20d871814e23f Signed-off-by: Cédric Ollivier --- xtesting/tests/unit/core/test_testcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xtesting/tests/unit/core') diff --git a/xtesting/tests/unit/core/test_testcase.py b/xtesting/tests/unit/core/test_testcase.py index 4ecedd9f..f3b2d512 100644 --- a/xtesting/tests/unit/core/test_testcase.py +++ b/xtesting/tests/unit/core/test_testcase.py @@ -151,7 +151,8 @@ class TestCaseTesting(unittest.TestCase): self.test.stop_time).strftime('%Y-%m-%d %H:%M:%S'), "version": "master"} - @mock.patch('re.sub') + @mock.patch('os.path.join', return_value='') + @mock.patch('re.sub', return_value='') @mock.patch('requests.post') def _test_pushdb_version(self, *args, **kwargs): payload = self._get_data() -- cgit 1.2.3-korg