Linting
This commit is contained in:
parent
cb6731f340
commit
273ca63d59
92 changed files with 515 additions and 1200 deletions
|
|
@ -105,9 +105,7 @@ def test_create_rest_api_valid_apikeysources():
|
|||
|
||||
# 1. test creating rest api with HEADER apiKeySource
|
||||
response = client.create_rest_api(
|
||||
name="my_api",
|
||||
description="this is my api",
|
||||
apiKeySource="HEADER",
|
||||
name="my_api", description="this is my api", apiKeySource="HEADER",
|
||||
)
|
||||
api_id = response["id"]
|
||||
|
||||
|
|
@ -116,9 +114,7 @@ def test_create_rest_api_valid_apikeysources():
|
|||
|
||||
# 2. test creating rest api with AUTHORIZER apiKeySource
|
||||
response = client.create_rest_api(
|
||||
name="my_api2",
|
||||
description="this is my api",
|
||||
apiKeySource="AUTHORIZER",
|
||||
name="my_api2", description="this is my api", apiKeySource="AUTHORIZER",
|
||||
)
|
||||
api_id = response["id"]
|
||||
|
||||
|
|
@ -153,9 +149,7 @@ def test_create_rest_api_valid_endpointconfigurations():
|
|||
|
||||
response = client.get_rest_api(restApiId=api_id)
|
||||
response["endpointConfiguration"].should.equal(
|
||||
{
|
||||
"types": ["PRIVATE"],
|
||||
}
|
||||
{"types": ["PRIVATE"],}
|
||||
)
|
||||
|
||||
# 2. test creating rest api with REGIONAL endpointConfiguration
|
||||
|
|
@ -168,9 +162,7 @@ def test_create_rest_api_valid_endpointconfigurations():
|
|||
|
||||
response = client.get_rest_api(restApiId=api_id)
|
||||
response["endpointConfiguration"].should.equal(
|
||||
{
|
||||
"types": ["REGIONAL"],
|
||||
}
|
||||
{"types": ["REGIONAL"],}
|
||||
)
|
||||
|
||||
# 3. test creating rest api with EDGE endpointConfiguration
|
||||
|
|
@ -183,9 +175,7 @@ def test_create_rest_api_valid_endpointconfigurations():
|
|||
|
||||
response = client.get_rest_api(restApiId=api_id)
|
||||
response["endpointConfiguration"].should.equal(
|
||||
{
|
||||
"types": ["EDGE"],
|
||||
}
|
||||
{"types": ["EDGE"],}
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -231,11 +221,7 @@ def test_create_resource():
|
|||
root_resource["ResponseMetadata"].pop("HTTPHeaders", None)
|
||||
root_resource["ResponseMetadata"].pop("RetryAttempts", None)
|
||||
root_resource.should.equal(
|
||||
{
|
||||
"path": "/",
|
||||
"id": root_id,
|
||||
"ResponseMetadata": {"HTTPStatusCode": 200},
|
||||
}
|
||||
{"path": "/", "id": root_id, "ResponseMetadata": {"HTTPStatusCode": 200},}
|
||||
)
|
||||
|
||||
client.create_resource(restApiId=api_id, parentId=root_id, pathPart="users")
|
||||
|
|
@ -1834,10 +1820,8 @@ def test_http_proxying_integration():
|
|||
stage_name = "staging"
|
||||
client.create_deployment(restApiId=api_id, stageName=stage_name)
|
||||
|
||||
deploy_url = (
|
||||
"https://{api_id}.execute-api.{region_name}.amazonaws.com/{stage_name}".format(
|
||||
api_id=api_id, region_name=region_name, stage_name=stage_name
|
||||
)
|
||||
deploy_url = "https://{api_id}.execute-api.{region_name}.amazonaws.com/{stage_name}".format(
|
||||
api_id=api_id, region_name=region_name, stage_name=stage_name
|
||||
)
|
||||
|
||||
if not settings.TEST_SERVER_MODE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue