Commit Graph

16 Commits

Author SHA1 Message Date
Philipp Wolfer
bbcd54ea27 PICARD-1390: Set webservice transfer timeout on config changes
Avoid reading the config on each request
2020-10-11 11:45:45 +02:00
Philipp Wolfer
ff2c62c024 PICARD-534: Add support for SOCKS proxy 2020-10-10 17:04:40 +02:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Philipp Wolfer
5fcbb89a0b Fixed typo occured -> occurred 2019-09-25 11:46:58 +02:00
Philipp Wolfer
dc0ec84401 isort: Consistently use two blank lines after import 2019-04-04 08:35:23 +02:00
Philipp Wolfer
dd4da2aa47 Updated isort config to put test imports in separate section 2019-04-04 08:32:22 +02:00
Wieland Hoffmann
e624aa121c Make PicardTestCase the parent class of all tests
This brings the faketagger and, more importantly, settings reset to all of them.
2018-10-23 17:32:50 +02:00
Laurent Monin
5329e3592a Clean up and sort imports using isort
Add a config for isort (https://github.com/timothycrosley/isort)
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00
Laurent Monin
8df1e78af4 Move throttling code to its own file
API is modified to use methods to get/set delays, instead of setting global variables
2018-01-29 18:24:56 +01:00
Sambhav Kothari
83e423f0a2 Fix tests with new POST refactoring 2017-07-20 21:34:31 +05:30
Sambhav Kothari
d3edb87f53 Fix WS tests for the new changes 2017-07-20 20:07:46 +05:30
Sambhav Kothari
029a6882e1 Add more tests for the webservice 2017-07-13 16:42:57 +05:30
Wieland Hoffmann
452a78aaf6 Don't use assert_called
It's only available in Python 3.6+
2017-07-10 20:34:16 +02:00
Wieland Hoffmann
690e385255 Use unittest.mock instead of mock
mock is not part of the standard library, only unittest.mock is.
2017-07-10 20:26:35 +02:00
Sambhav Kothari
9df404172a Add more tests for WebService 2017-07-10 15:58:49 +05:30
Sambhav Kothari
dcaa3f4e84 Add basic code to test Webservice 2017-07-09 21:37:52 +05:30