summaryrefslogtreecommitdiff
path: root/tests/integration/test_dynamodb.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-23 13:06:02 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-25 13:47:28 -0500
commitb86bdad077f3e5fec032ee261a87b381602e347c (patch)
treed842885aabcae8ccd45ac94b69b89d025e66fbcb /tests/integration/test_dynamodb.py
parent85c3263d55c8881d942bd396e8f79c33a3019e42 (diff)
downloadrequests-cache-b86bdad077f3e5fec032ee261a87b381602e347c.tar.gz
Move 'Cache Files' docs that apply to both SQLite and Filesystem backends to main User Guide page
Diffstat (limited to 'tests/integration/test_dynamodb.py')
-rw-r--r--tests/integration/test_dynamodb.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/integration/test_dynamodb.py b/tests/integration/test_dynamodb.py
index 2b55339..0dbf268 100644
--- a/tests/integration/test_dynamodb.py
+++ b/tests/integration/test_dynamodb.py
@@ -2,7 +2,7 @@ from unittest.mock import patch
import pytest
-from requests_cache.backends import DynamoDbCache, DynamoDbDict
+from requests_cache.backends import DynamoCache, DynamoDict
from tests.conftest import AWS_OPTIONS, fail_if_no_connection
from tests.integration.base_cache_test import BaseCacheTest
from tests.integration.base_storage_test import BaseStorageTest
@@ -18,18 +18,18 @@ def ensure_connection():
client.describe_limits()
-class TestDynamoDbDict(BaseStorageTest):
- storage_class = DynamoDbDict
+class TestDynamoDict(BaseStorageTest):
+ storage_class = DynamoDict
init_kwargs = AWS_OPTIONS
picklable = True
@patch('requests_cache.backends.dynamodb.boto3.resource')
def test_connection_kwargs(self, mock_resource):
"""A spot check to make sure optional connection kwargs gets passed to connection"""
- DynamoDbDict('test', region_name='us-east-2', invalid_kwarg='???')
+ DynamoDict('test', region_name='us-east-2', invalid_kwarg='???')
mock_resource.assert_called_with('dynamodb', region_name='us-east-2')
-class TestDynamoDbCache(BaseCacheTest):
- backend_class = DynamoDbCache
+class TestDynamoCache(BaseCacheTest):
+ backend_class = DynamoCache
init_kwargs = AWS_OPTIONS