File tree 2 files changed +4
-3
lines changed
pynamodb_mate/patterns/cache/backend
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,16 @@ class DynamoDBBackend(
42
42
def __init__ (
43
43
self ,
44
44
table_name : str ,
45
- region : T . Optional [ str ] = None ,
45
+ region : str ,
46
46
billing_mode : T .Optional [str ] = PAY_PER_REQUEST_BILLING_MODE ,
47
47
write_capacity_units : T .Optional [int ] = None ,
48
48
read_capacity_units : T .Optional [int ] = None ,
49
49
create : bool = True ,
50
50
):
51
51
meta_kwargs = dict (
52
52
table_name = table_name ,
53
+ region = region ,
53
54
)
54
- if region : # pragma: no cover
55
- meta_kwargs ["region" ] = region
56
55
if billing_mode :
57
56
meta_kwargs ["billing_mode" ] = billing_mode
58
57
if write_capacity_units : # pragma: no cover
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ def test(self):
40
40
class Base (BaseTest ):
41
41
json_dict_dynamodb_cache = JsonDictDynamodbCache (
42
42
table_name = f"pynamodb-mate-test-cache-{ PY_VER } -{ PYNAMODB_VER } " ,
43
+ region = "us-east-1" ,
43
44
create = False ,
44
45
)
45
46
json_list_dynamodb_cache = JsonListDynamodbCache (
46
47
table_name = f"pynamodb-mate-test-cache-{ PY_VER } -{ PYNAMODB_VER } " ,
48
+ region = "us-east-1" ,
47
49
create = False ,
48
50
)
49
51
model_list = [
You can’t perform that action at this time.
0 commit comments