diff --git a/moto/dynamodb/models.py b/moto/dynamodb/models.py index bb7b9d49a..46199e625 100644 --- a/moto/dynamodb/models.py +++ b/moto/dynamodb/models.py @@ -1,11 +1,12 @@ from moto.core import BaseBackend + class DynamoDBBackend(BaseBackend): - + def __init__(self): self.tables = {} def create_table(self, name): self.tables[name] = None -dynamodb_backend = DynamoDBBackend() \ No newline at end of file +dynamodb_backend = DynamoDBBackend() diff --git a/moto/dynamodb/responses.py b/moto/dynamodb/responses.py index 980312519..9fc616741 100644 --- a/moto/dynamodb/responses.py +++ b/moto/dynamodb/responses.py @@ -2,8 +2,9 @@ import re import json from .models import dynamodb_backend + class DynamoHandler(object): - + def __init__(self, uri, body, headers): self.uri = uri self.body = body @@ -26,7 +27,7 @@ class DynamoHandler(object): tables = dynamodb_backend.tables.keys() response = {"TableNames": tables} return json.dumps(response) - + def handler(uri, body, headers): - return DynamoHandler(uri, body, headers).dispatch() \ No newline at end of file + return DynamoHandler(uri, body, headers).dispatch()