Commit Graph

10 Commits

Author SHA1 Message Date
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Toshiya Kawasaki
127b3e73e9
Fix scaffold.py (#3270)
* upgrade prompt-toolkit to make scaffold.py work

* update append_mock_to_init_py

* enable to run when method name is not upper camel case

* support new moto/backend.py format

* use prompt-toolkit 2.x.x to support python2

* fix invalid initialization of moto/backends.py
2020-09-01 11:44:13 +01:00
Patrick Delaney
d06a5d3a2b
fix: small fixes to get scripts/scaffold.py working 2020-01-07 10:12:50 -05:00
Chih-Hsuan Yen
18173a5951
Replace # flake8: noqa with # noqa
The former syntax is actually a mis-use and rejected since Flake8 3.6
[1].

[1] https://gitlab.com/pycqa/flake8/merge_requests/219
2019-10-27 20:41:22 +08:00
Toshiya Kawasaki
56793a3b2a 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-24 20:45:39 +02:00
Toshiya Kawasaki
ea26466e6d Add more files and lines when scaffolding (#1222)
* auto-generatr urls.py

* add mocks to moto/__init__.py and moto/backends.py

* add uri to urls.py

* change output of scaffold.py
2017-10-01 15:17:02 -07:00
Terry Cain
2db5f0a247 Added some instruction text 2017-09-26 17:33:19 +01:00
Toshiya Kawasaki
0a4c2301c7 fix bug that existing template breaks 2017-09-23 17:14:04 +09:00
Toshiya Kawasaki
316a638d9e add description of scaffold.py 2017-09-23 17:03:42 +09:00
Toshiya Kawasaki
4cc4b36f15 move helper script to scripts dir and add one to Makefile 2017-09-22 19:23:10 +09:00