Techdebt: Sure - Scripts (test templates) (#6052)
This commit is contained in:
parent
bb60ea3594
commit
bb39b02098
@ -1,5 +1,4 @@
|
||||
"""Test different server responses."""
|
||||
import sure # noqa # pylint: disable=unused-import
|
||||
|
||||
import moto.server as server
|
||||
|
||||
@ -9,5 +8,6 @@ def test_{{ escaped_service }}_list():
|
||||
test_client = backend.test_client()
|
||||
|
||||
resp = test_client.get("/")
|
||||
resp.status_code.should.equal(200)
|
||||
str(resp.data).should.contain("?")
|
||||
|
||||
assert resp.status_code == 200
|
||||
assert "?" in str(resp.data)
|
||||
|
@ -1,9 +1,7 @@
|
||||
"""Unit tests for {{ escaped_service }}-supported APIs."""
|
||||
import boto3
|
||||
|
||||
import sure # noqa # pylint: disable=unused-import
|
||||
from moto import mock_{{ escaped_service }}
|
||||
|
||||
# See our Development Tips on writing tests for hints on how to write good tests:
|
||||
# http://docs.getmoto.org/en/latest/docs/contributing/development_tips/tests.html
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user