dynamodb v2 no indexes
This commit is contained in:
parent
ac1d2f5ef4
commit
48cfd19fe6
12 changed files with 1509 additions and 0 deletions
18
tests/test_dynamodb2/test_server.py
Normal file
18
tests/test_dynamodb2/test_server.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
|
||||
'''
|
||||
Test the different server responses
|
||||
'''
|
||||
server.configure_urls("dynamodb2")
|
||||
|
||||
|
||||
def test_table_list():
|
||||
test_client = server.app.test_client()
|
||||
res = test_client.get('/')
|
||||
res.status_code.should.equal(404)
|
||||
|
||||
headers = {'X-Amz-Target': 'TestTable.ListTables'}
|
||||
res = test_client.get('/', headers=headers)
|
||||
res.data.should.contain('TableNames')
|
||||
Loading…
Add table
Add a link
Reference in a new issue