diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 14:03:18 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 14:15:29 -0500 |
commit | f174ce3d0542d3823b93448e4c4ef6c2cef14179 (patch) | |
tree | b0f711885c107c3fbc621c8bfd690b9de6a83842 /tests/integration | |
parent | 97a6a19035f4a68e7e4689fc0a1cec6e7781c4a4 (diff) | |
download | requests-cache-f174ce3d0542d3823b93448e4c4ef6c2cef14179.tar.gz |
Close database connections (if applicable) on CachedSession.__exit__ and close()
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/base_cache_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/base_cache_test.py b/tests/integration/base_cache_test.py index 6381a42..0ec1d51 100644 --- a/tests/integration/base_cache_test.py +++ b/tests/integration/base_cache_test.py @@ -71,7 +71,8 @@ class BaseCacheTest: @classmethod def teardown_class(cls): - cls().init_session(clear=True) + session = cls().init_session(clear=True) + session.close() @pytest.mark.parametrize('serializer', TEST_SERIALIZERS.values()) @pytest.mark.parametrize('method', HTTPBIN_METHODS) |