fix tests on travisci after proxy added to test environment
This commit is contained in:
parent
c553fa634a
commit
a46799e3c2
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ class TestCase(unittest.TestCase):
|
||||||
|
|
||||||
self.maxDiff = 1000
|
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 = {}
|
self.patched = {}
|
||||||
if hasattr(self, 'patch_these'):
|
if hasattr(self, 'patch_these'):
|
||||||
for patch_this in self.patch_these:
|
for patch_this in self.patch_these:
|
||||||
|
|
Loading…
Reference in a new issue