summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-06-22 13:05:56 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-07-03 15:44:10 -0500
commita08c39ad6b213eb379df5872de0a695348c82542 (patch)
tree6ad91cb2aaf45d4b62c89e2c33fb3b060b42ce77 /tests/conftest.py
parentc4b9e4d4dcad5470de4a30464a6ac8a875615ad9 (diff)
downloadrequests-cache-a08c39ad6b213eb379df5872de0a695348c82542.tar.gz
Some serialization fixes & updates:
* Fix tests on python 3.6: * Make `cattrs` optional again * Don't run tests for serializers with missing optional dependencies * Show any skipped tests in pytest output * Fix redirect serialization for backends that serialize all values (DynamoDB and Redis) * Otherwise, the redirect value (which is just another key) will get converted into a `CachedResponse` * Make `pickle` serializer use `cattrs` if installed * Make `bson` serializer compatible with both `pymongo` version and standalone `bson` library * Split up `CattrStage` and preconf converters into separate modules * Turn preconf converters into `Stage` objects * Add `DeprecationWarning` for previous method of using `itsdangerous`, now that there's a better way to initialize it via `SerializerPipeline` * Remove `suppress_warnings` kwarg that's now unused * Make `SerializerPipeline`, `Stage`, and `CattrStage` importable from top-level package (`from requests_cache import ...`) * Add some more details to docs and docstrings
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index bc2c6da..ccc8833 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -121,7 +121,6 @@ def mock_session() -> CachedSession:
db_path=temp.name,
backend='sqlite',
allowable_methods=ALL_METHODS,
- suppress_warnings=True,
)
yield mount_mock_adapter(session)
@@ -134,7 +133,6 @@ def tempfile_session() -> CachedSession:
cache_name=temp.name,
backend='sqlite',
allowable_methods=ALL_METHODS,
- suppress_warnings=True,
)
yield session
@@ -156,7 +154,6 @@ def installed_session() -> CachedSession:
cache_name=temp.name,
backend='sqlite',
allowable_methods=ALL_METHODS,
- suppress_warnings=True,
)
yield requests.Session()
requests_cache.uninstall_cache()