moto/tests/test_apigatewayv2/test_server.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
360 B
Python
Raw Normal View History

2022-02-08 21:12:51 +00:00
import json
import sure # noqa # pylint: disable=unused-import
import moto.server as server
def test_apigatewayv2_list_apis():
backend = server.create_backend_app("apigatewayv2")
test_client = backend.test_client()
resp = test_client.get("/v2/apis")
resp.status_code.should.equal(200)
json.loads(resp.data).should.equal({"items": []})