Skip to content

Commit cc2b217

Browse files
committed
fix usage
1 parent 21e2b6a commit cc2b217

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

store/backend/neurostore/tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,11 @@ def add_users(real_app, real_db):
377377
from neurostore.resources.auth import decode_token
378378

379379
domain = real_app.config["AUTH0_BASE_URL"].split("://")[1]
380-
token = GetToken(domain)
380+
token = GetToken(
381+
domain,
382+
real_app.config["AUTH0_CLIENT_ID"],
383+
real_app.config["AUTH0_CLIENT_SECRET"],
384+
)
381385

382386
users = [
383387
{
@@ -395,8 +399,6 @@ def add_users(real_app, real_db):
395399
name = u["name"]
396400
passw = u["password"]
397401
payload = token.login(
398-
client_id=real_app.config["AUTH0_CLIENT_ID"],
399-
client_secret=real_app.config["AUTH0_CLIENT_SECRET"],
400402
username=name + "@email.com",
401403
password=passw,
402404
realm="Username-Password-Authentication",

0 commit comments

Comments
 (0)