summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-04-22 17:16:42 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-04-22 20:55:23 -0500
commit6e1679f7fb53a7edd2133f3a5ab2d8ca40ddccdb (patch)
tree32f3626643cc6b1e5102a6e627e8142d5dfd912a /tests/conftest.py
parentf2bf9bbfd8d711e9dfc8ccce83f439d765d484cb (diff)
downloadrequests-cache-6e1679f7fb53a7edd2133f3a5ab2d8ca40ddccdb.tar.gz
Combine test_cache.py with BaseCacheTest to run these tests for all backends
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index a918bc7..c01e066 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -29,6 +29,23 @@ STRESS_TEST_MULTIPLIER = int(os.getenv('STRESS_TEST_MULTIPLIER', '1'))
N_THREADS = 2 * STRESS_TEST_MULTIPLIER
N_ITERATIONS = 4 * STRESS_TEST_MULTIPLIER
+HTTPBIN_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']
+HTTPBIN_FORMATS = [
+ 'brotli',
+ 'deflate',
+ 'deny',
+ 'encoding/utf8',
+ 'gzip',
+ 'html',
+ 'image/jpeg',
+ 'image/png',
+ 'image/svg',
+ 'image/webp',
+ 'json',
+ 'robots.txt',
+ 'xml',
+]
+
MOCKED_URL = 'http+mock://requests-cache.com/text'
MOCKED_URL_HTTPS = 'https+mock://requests-cache.com/text'
MOCKED_URL_JSON = 'http+mock://requests-cache.com/json'