API Gateway - Linting
This commit is contained in:
parent
f0e2d44c5d
commit
e4b586022d
2 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ import requests
|
|||
import time
|
||||
|
||||
from boto3.session import Session
|
||||
|
||||
try:
|
||||
from urlparse import urlparse
|
||||
except ImportError:
|
||||
|
|
@ -731,7 +732,8 @@ class APIGatewayBackend(BaseBackend):
|
|||
stage_variables = {}
|
||||
api = self.get_rest_api(function_id)
|
||||
methods = [
|
||||
list(res.resource_methods.values()) for res in self.list_resources(function_id)
|
||||
list(res.resource_methods.values())
|
||||
for res in self.list_resources(function_id)
|
||||
][0]
|
||||
if not any(methods):
|
||||
raise NoMethodDefined()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue