Skip to content

Testing the django-mysql e2e test #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aikido_zen/context/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, context_obj=None, body=None, req=None, source=None):
self.subdomains = get_subdomains_from_url(self.url)

self.executed_middleware = False
logger.debug("New `%s` context: [%s]%s", self.source, self.method, self.route)

def __reduce__(self):
return (
Expand Down
1 change: 0 additions & 1 deletion aikido_zen/context/asgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def set_asgi_attributes_on_context(context, scope):
This extracts ASGI Scope attributes, described in :
https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope
"""
logger.debug("Setting ASGI attributes")
context.method = scope["method"]
context.headers = normalize_asgi_headers(scope["headers"])

Expand Down
2 changes: 0 additions & 2 deletions aikido_zen/context/wsgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ def set_wsgi_attributes_on_context(context, environ):
This extracts WSGI attributes, described in :
https://peps.python.org/pep-3333/#environ-variables
"""
logger.debug("Setting wsgi attributes")

context.method = environ["REQUEST_METHOD"]
context.headers = extract_wsgi_headers(environ)
if context.headers.get_header("COOKIE"):
Expand Down
2 changes: 2 additions & 0 deletions aikido_zen/sources/functions/request_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
cache = get_cache()
if ctx.get_current_context() and cache:
cache.stats.increment_total_hits()
else:
logger.debug("Init stage ran, but unable to increment total hits.")

Check warning on line 20 in aikido_zen/sources/functions/request_handler.py

View check run for this annotation

Codecov / codecov/patch

aikido_zen/sources/functions/request_handler.py#L20

Added line #L20 was not covered by tests
if stage == "pre_response":
return pre_response()
if stage == "post_response":
Expand Down
Loading