Logo
Explore Help
Register Sign In
Yasuke/moto
1
0
Fork 0
You've already forked moto
Code Issues Pull Requests Packages Projects Releases Wiki Activity
moto/scripts/template/test/test_server.py.j2

14 lines
370 B
Plaintext
Raw Normal View History

Minor updates to scaffold.py (#4213) Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-08-24 11:49:45 -04:00
"""Test different server responses."""
Feature: TimeStream support (#4454)
2021-10-21 15:13:43 +00:00
import sure # noqa # pylint: disable=unused-import
Create service and test directories when they don't exist
2017-09-20 03:14:14 +09:00
import moto.server as server
Fix scaffold to support rest-json style API (#1291) * append appropriate urls when scaffolding * make dispatch for rest-api * fix dispatch for rest-json * fix moto/core/response to obtain path and body parameters * small fixes * remove unused import * fix get_int_param * fix scaffold * fix formatting of scaffold * fix misc * escape service to handle service w/ hyphen like iot-data * escape service w/ hyphen * fix regexp to extract region from url * escape service * fix syntax * skip loading body to json object when request body is None
2017-10-25 03:45:39 +09:00
def test_{{ escaped_service }}_list():
Create service and test directories when they don't exist
2017-09-20 03:14:14 +09:00
backend = server.create_backend_app("{{ service }}")
test_client = backend.test_client()
Scaffold-script improvements (#4641)
2021-11-29 14:36:24 -01:00
resp = test_client.get("/")
resp.status_code.should.equal(200)
str(resp.data).should.contain("?")
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 79ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API