This commit is contained in:
Steve Pulec 2016-03-05 18:01:57 -05:00
parent ba70d8fe8d
commit 88f64deff9
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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):

View File

@ -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")