fix tests on travisci after proxy added to test environment

This commit is contained in:
Alan Hamlett 2018-12-03 21:35:35 -08:00
parent c553fa634a
commit a46799e3c2

View file

@ -39,6 +39,11 @@ class TestCase(unittest.TestCase):
self.maxDiff = 1000
patch_getproxies = mock.patch('wakatime.packages.requests.sessions.get_environ_proxies')
mocked_getproxies = patch_getproxies.start()
mocked_getproxies.reset_mock()
mocked_getproxies.return_value = {}
self.patched = {}
if hasattr(self, 'patch_these'):
for patch_this in self.patch_these: