Skip to content

Commit 8e3a7b2

Browse files
committed
fixes frontendintegration tests with st-website repo
1 parent 8278867 commit 8e3a7b2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Python: Flask, supertokens-website tests",
6+
"type": "python",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/tests/frontendIntegration/flask-server/app.py",
9+
"args": [
10+
"--port",
11+
"8080"
12+
],
13+
"cwd": "${workspaceFolder}/tests/frontendIntegration/flask-server",
14+
"env": {
15+
"FLASK_DEBUG": "1"
16+
},
17+
"jinja": true
18+
}
19+
]
20+
}

supertokens_python/supertokens.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ def reset():
325325
environ["SUPERTOKENS_ENV"] != "testing"
326326
):
327327
raise_general_exception("calling testing function in non testing env")
328+
from supertokens_python.recipe.usermetadata.recipe import UserMetadataRecipe
329+
330+
UserMetadataRecipe.reset()
328331
Querier.reset()
329332
Supertokens.__instance = None
330333

0 commit comments

Comments
 (0)