mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Add timeout argument to requests.(get,post)
This commit is contained in:
parent
cf0100cf11
commit
c89a9f0e8b
11 changed files with 23 additions and 15 deletions
|
|
@ -35,7 +35,7 @@ class NetTest(unittest.TestCase):
|
|||
|
||||
@patch('requests.get')
|
||||
def test_download_file_url_parsing(self, requests_get):
|
||||
def _get(url, stream, allow_redirects, headers): # pylint: disable=W0613
|
||||
def _get(url, stream, allow_redirects, headers, timeout): # pylint: disable=W0613
|
||||
return MagicMock()
|
||||
|
||||
requests_get.side_effect = _get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue