From d8c7450576b838ccbe21ed23a3e75257db0ed662 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 31 Aug 2023 10:55:04 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(test=5Fuser.py):=20refacto?= =?UTF-8?q?r=20super=5Fuser=20fixture=20to=20use=20auth=20settings=20from?= =?UTF-8?q?=20settings=20manager=20for=20username=20and=20password=20?= =?UTF-8?q?=F0=9F=94=A7=20chore(test=5Fuser.py):=20refactor=20super=5Fuser?= =?UTF-8?q?=20fixture=20to=20use=20auth=20settings=20from=20settings=20man?= =?UTF-8?q?ager=20for=20username=20and=20password=20in=20create=5Fsuper=5F?= =?UTF-8?q?user=20function=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_user.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_user.py b/tests/test_user.py index d734e4d61..35b724cc6 100644 --- a/tests/test_user.py +++ b/tests/test_user.py @@ -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