fix(tests): isolate test DB and sync tier=pro in Pro user fixtures
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m34s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m34s
This commit is contained in:
@@ -71,6 +71,7 @@ def pro_user_token(client, monkeypatch):
|
||||
users = auth_svc.load_users()
|
||||
if user_id in users:
|
||||
users[user_id]["plan"] = "pro"
|
||||
users[user_id]["tier"] = "pro"
|
||||
auth_svc.save_users(users)
|
||||
|
||||
return token, user_id
|
||||
@@ -269,6 +270,7 @@ class TestPromptCRUD:
|
||||
users = auth_svc.load_users()
|
||||
if user_id1 in users:
|
||||
users[user_id1]["plan"] = "pro"
|
||||
users[user_id1]["tier"] = "pro"
|
||||
auth_svc.save_users(users)
|
||||
|
||||
email2 = "pro2@test.com"
|
||||
@@ -284,6 +286,7 @@ class TestPromptCRUD:
|
||||
users = auth_svc.load_users()
|
||||
if user_id2 in users:
|
||||
users[user_id2]["plan"] = "pro"
|
||||
users[user_id2]["tier"] = "pro"
|
||||
auth_svc.save_users(users)
|
||||
|
||||
with get_sync_session() as session:
|
||||
|
||||
Reference in New Issue
Block a user