Fix linter

This commit is contained in:
Bert Blommers 2022-10-04 16:51:01 +00:00 committed by GitHub
parent 4f84e2f154
commit ba517c156d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -767,15 +767,13 @@ def test_query_begins_with_without_brackets():
def test_transact_write_items_multiple_operations_fail(): def test_transact_write_items_multiple_operations_fail():
# Setup # Setup
table_schema = { schema = {
"KeySchema": [{"AttributeName": "id", "KeyType": "HASH"}], "KeySchema": [{"AttributeName": "id", "KeyType": "HASH"}],
"AttributeDefinitions": [{"AttributeName": "id", "AttributeType": "S"}], "AttributeDefinitions": [{"AttributeName": "id", "AttributeType": "S"}],
} }
dynamodb = boto3.client("dynamodb", region_name="us-east-1") dynamodb = boto3.client("dynamodb", region_name="us-east-1")
table_name = "test-table" table_name = "test-table"
dynamodb.create_table( dynamodb.create_table(TableName=table_name, BillingMode="PAY_PER_REQUEST", **schema)
TableName=table_name, BillingMode="PAY_PER_REQUEST", **table_schema
)
# Execute # Execute
with pytest.raises(ClientError) as exc: with pytest.raises(ClientError) as exc: