Create service and test directories when they don't exist
This commit is contained in:
parent
5996876043
commit
9cdc0d5070
7 changed files with 140 additions and 16 deletions
16
template/test/test_server.py.j2
Normal file
16
template/test/test_server.py.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import sure # noqa
|
||||
|
||||
import moto.server as server
|
||||
from moto import mock_{{ service }}
|
||||
|
||||
'''
|
||||
Test the different server responses
|
||||
'''
|
||||
|
||||
@mock_{{ service }}
|
||||
def test_{{ service }}_list():
|
||||
backend = server.create_backend_app("{{ service }}")
|
||||
test_client = backend.test_client()
|
||||
# do test
|
||||
11
template/test/test_service.py.j2
Normal file
11
template/test/test_service.py.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import boto3
|
||||
import sure # noqa
|
||||
from moto import mock_{{ service }}
|
||||
|
||||
|
||||
@mock_{{ service }}
|
||||
def test_list():
|
||||
# do test
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue