From 90d8d52926d75e70aa7cfd457ddc44edd83cf9ac Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Wed, 9 Oct 2024 11:48:01 +0530 Subject: [PATCH] small changes --- .vscode/launch.json | 15 ++++++++++++++- tests/test-server/app.py | 6 ++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f98c1200..19251e61 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -72,6 +72,19 @@ }, "cwd": "${workspaceFolder}/tests/auth-react/django3x", "jinja": true - } + }, + { + "name": "Python: backend-sdk-testing repo", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/tests/test-server/app.py", + "cwd": "${workspaceFolder}/tests/test-server", + "env": { + "SUPERTOKENS_ENV": "testing", + "API_PORT": "3030", + "ST_CONNECTION_URI": "http://localhost:8081" + }, + "console": "integratedTerminal" + }, ] } \ No newline at end of file diff --git a/tests/test-server/app.py b/tests/test-server/app.py index f743a56f..49c16fee 100644 --- a/tests/test-server/app.py +++ b/tests/test-server/app.py @@ -1,5 +1,8 @@ from typing import Any, Callable, Dict, List, Optional, TypeVar, Tuple from flask import Flask, request, jsonify +from supertokens_python.recipe.accountlinking.recipe import AccountLinkingRecipe +from supertokens_python.recipe.multifactorauth.recipe import MultiFactorAuthRecipe +from supertokens_python.recipe.totp.recipe import TOTPRecipe from utils import init_test_claims from supertokens_python.process_state import ProcessState from supertokens_python.recipe.dashboard.recipe import DashboardRecipe @@ -136,6 +139,9 @@ def st_reset(): DashboardRecipe.reset() PasswordlessRecipe.reset() MultitenancyRecipe.reset() + AccountLinkingRecipe.reset() + TOTPRecipe.reset() + MultiFactorAuthRecipe.reset() def init_st(config): # type: ignore