Skip to content

Commit

Permalink
fixes frontendintegration tests with st-website repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Sep 29, 2024
1 parent 8278867 commit 8e3a7b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask, supertokens-website tests",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/tests/frontendIntegration/flask-server/app.py",
"args": [
"--port",
"8080"
],
"cwd": "${workspaceFolder}/tests/frontendIntegration/flask-server",
"env": {
"FLASK_DEBUG": "1"
},
"jinja": true
}
]
}
3 changes: 3 additions & 0 deletions supertokens_python/supertokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ def reset():
environ["SUPERTOKENS_ENV"] != "testing"
):
raise_general_exception("calling testing function in non testing env")
from supertokens_python.recipe.usermetadata.recipe import UserMetadataRecipe

UserMetadataRecipe.reset()
Querier.reset()
Supertokens.__instance = None

Expand Down

0 comments on commit 8e3a7b2

Please sign in to comment.