🔧 chore(test_user.py): refactor super_user fixture to use auth settings from settings manager for username and password
🔧 chore(test_user.py): refactor super_user fixture to use auth settings from settings manager for username and password in create_super_user function call
This commit is contained in:
parent
8d96c32c2b
commit
d8c7450576
1 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,13 @@ from langflow.services.database.models.user import UserUpdate
|
|||
|
||||
@pytest.fixture
|
||||
def super_user(client, session):
|
||||
return create_super_user(session)
|
||||
settings_manager = get_settings_manager()
|
||||
auth_settings = settings_manager.auth_settings
|
||||
return create_super_user(
|
||||
session,
|
||||
username=auth_settings.FIRST_SUPERUSER,
|
||||
password=auth_settings.FIRST_SUPERUSER_PASSWORD,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue