Techdebt: Sure - Scripts (test templates) (#6052)

This commit is contained in:
Hans Donner 2023-03-11 16:37:39 +01:00 committed by GitHub
parent bb60ea3594
commit bb39b02098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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