Skip to content

Commit

Permalink
fix: website tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 20, 2024
1 parent e0159bc commit beab132
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/frontendIntegration/django3x/mysite/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

if True:
# to help middleware function with uvicorn (to ensure supertokens init is called)
from polls.views import config

config(True, False, None)

application = get_asgi_application()
6 changes: 6 additions & 0 deletions tests/frontendIntegration/drf_async/mysite/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

if True:
# to help middleware function with uvicorn (to ensure supertokens init is called)
from polls.views import config

config(True, False, None)

application = get_asgi_application()
6 changes: 6 additions & 0 deletions tests/frontendIntegration/drf_sync/mysite/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")

if True:
# to help middleware function with uvicorn (to ensure supertokens init is called)
from polls.views import config

config(True, False, None)

application = get_wsgi_application()

0 comments on commit beab132

Please sign in to comment.