Adding intitial DynamoDB setup and implementing ListTables target
This commit is contained in:
parent
7907585b65
commit
5086e6e590
6 changed files with 63 additions and 0 deletions
12
tests/test_dynamodb/test_dynamodb.py
Normal file
12
tests/test_dynamodb/test_dynamodb.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import boto
|
||||
|
||||
from moto import mock_dynamodb
|
||||
from moto.dynamodb import dynamodb_backend
|
||||
|
||||
|
||||
@mock_dynamodb
|
||||
def test_create_table():
|
||||
name = "TestTable"
|
||||
dynamodb_backend.create_table(name)
|
||||
conn = boto.connect_dynamodb('the_key', 'the_secret')
|
||||
assert conn.list_tables() == ['TestTable']
|
||||
Loading…
Add table
Add a link
Reference in a new issue