forked from zappa/Zappa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
5,407 additions
and
3,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
|
||
# this is a module | ||
|
||
|
||
def greet(): | ||
print('There is more stupidity than hydrogen in the universe, and it has a longer shelf life.') | ||
print( | ||
"There is more stupidity than hydrogen in the universe, and it has a longer shelf life." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
# this is a module, so test2 should get an __init__.py | ||
|
||
|
||
def get_some_wisdom(): | ||
return 'Art is making something out of nothing, and selling it.' | ||
return "Art is making something out of nothing, and selling it." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
API_STAGE = 'dev' | ||
APP_FUNCTION = 'app' | ||
APP_MODULE = 'tests.test_wsgi_script_name_app' | ||
API_STAGE = "dev" | ||
APP_FUNCTION = "app" | ||
APP_MODULE = "tests.test_wsgi_script_name_app" | ||
BINARY_SUPPORT = False | ||
CONTEXT_HEADER_MAPPINGS = {} | ||
DEBUG = 'True' | ||
DEBUG = "True" | ||
DJANGO_SETTINGS = None | ||
DOMAIN = 'api.example.com' | ||
DOMAIN = "api.example.com" | ||
ENVIRONMENT_VARIABLES = {} | ||
LOG_LEVEL = 'DEBUG' | ||
PROJECT_NAME = 'wsgi_script_name_settings' | ||
LOG_LEVEL = "DEBUG" | ||
PROJECT_NAME = "wsgi_script_name_settings" | ||
COGNITO_TRIGGER_MAPPING = {} | ||
AWS_BOT_EVENT_MAPPING = {'intent-name:DialogCodeHook': 'tests.test_handler.raises_exception'} | ||
EXCEPTION_HANDLER = 'tests.test_handler.mocked_exception_handler' | ||
AWS_BOT_EVENT_MAPPING = { | ||
"intent-name:DialogCodeHook": "tests.test_handler.raises_exception" | ||
} | ||
EXCEPTION_HANDLER = "tests.test_handler.mocked_exception_handler" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
API_STAGE = 'dev' | ||
APP_FUNCTION = 'app' | ||
APP_MODULE = 'tests.test_wsgi_script_name_app' | ||
API_STAGE = "dev" | ||
APP_FUNCTION = "app" | ||
APP_MODULE = "tests.test_wsgi_script_name_app" | ||
BINARY_SUPPORT = False | ||
CONTEXT_HEADER_MAPPINGS = {} | ||
DEBUG = 'True' | ||
DEBUG = "True" | ||
DJANGO_SETTINGS = None | ||
DOMAIN = 'api.example.com' | ||
DOMAIN = "api.example.com" | ||
ENVIRONMENT_VARIABLES = {} | ||
LOG_LEVEL = 'DEBUG' | ||
PROJECT_NAME = 'wsgi_script_name_settings' | ||
LOG_LEVEL = "DEBUG" | ||
PROJECT_NAME = "wsgi_script_name_settings" | ||
COGNITO_TRIGGER_MAPPING = {} | ||
AWS_BOT_EVENT_MAPPING = {'intent-name:DialogCodeHook': 'tests.test_handler.handle_bot_intent'} | ||
AWS_BOT_EVENT_MAPPING = { | ||
"intent-name:DialogCodeHook": "tests.test_handler.handle_bot_intent" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
|
||
def handler_for_events(event, context): | ||
print('Event:', event) | ||
print("Event:", event) | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
API_STAGE = 'dev' | ||
APP_FUNCTION = 'handler_for_events' | ||
APP_MODULE = 'tests.test_event_script_app' | ||
DEBUG = 'True' | ||
API_STAGE = "dev" | ||
APP_FUNCTION = "handler_for_events" | ||
APP_MODULE = "tests.test_event_script_app" | ||
DEBUG = "True" | ||
DJANGO_SETTINGS = None | ||
DOMAIN = 'api.example.com' | ||
DOMAIN = "api.example.com" | ||
ENVIRONMENT_VARIABLES = {} | ||
LOG_LEVEL = 'DEBUG' | ||
PROJECT_NAME = 'test_event_script_app' | ||
LOG_LEVEL = "DEBUG" | ||
PROJECT_NAME = "test_event_script_app" | ||
COGNITO_TRIGGER_MAPPING = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
API_STAGE = 'dev' | ||
APP_FUNCTION = 'raises_exception' | ||
APP_MODULE = 'tests.test_handler' | ||
API_STAGE = "dev" | ||
APP_FUNCTION = "raises_exception" | ||
APP_MODULE = "tests.test_handler" | ||
BINARY_SUPPORT = False | ||
CONTEXT_HEADER_MAPPINGS = {} | ||
DEBUG = 'True' | ||
DEBUG = "True" | ||
DJANGO_SETTINGS = None | ||
DOMAIN = 'api.example.com' | ||
DOMAIN = "api.example.com" | ||
ENVIRONMENT_VARIABLES = {} | ||
LOG_LEVEL = 'DEBUG' | ||
PROJECT_NAME = 'raises_exception' | ||
LOG_LEVEL = "DEBUG" | ||
PROJECT_NAME = "raises_exception" | ||
COGNITO_TRIGGER_MAPPING = {} | ||
EXCEPTION_HANDLER = 'tests.test_handler.mocked_exception_handler' | ||
EXCEPTION_HANDLER = "tests.test_handler.mocked_exception_handler" |
Oops, something went wrong.