fix py3
This commit is contained in:
parent
ba70d8fe8d
commit
88f64deff9
@ -210,7 +210,7 @@ class RestAPI(object):
|
||||
return self.deployments[deployment_id]
|
||||
|
||||
def get_deployments(self):
|
||||
return self.deployments.values()
|
||||
return list(self.deployments.values())
|
||||
|
||||
def delete_deployment(self, deployment_id):
|
||||
return self.deployments.pop(deployment_id)
|
||||
|
@ -9,7 +9,7 @@ from .models import apigateway_backends
|
||||
class APIGatewayResponse(BaseResponse):
|
||||
|
||||
def _get_param(self, key):
|
||||
return json.loads(self.body).get(key)
|
||||
return json.loads(self.body.decode("ascii")).get(key)
|
||||
|
||||
@property
|
||||
def backend(self):
|
||||
|
@ -515,4 +515,4 @@ def test_http_proxying_integration():
|
||||
|
||||
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)
|
||||
|
||||
requests.get(deploy_url).content.should.equal("a fake response")
|
||||
requests.get(deploy_url).content.should.equal(b"a fake response")
|
||||
|
Loading…
Reference in New Issue
Block a user