From ed61bb5b8b9a3979f8e42b52112e5eca424a2f1f Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 4 Oct 2023 17:43:56 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(test=5Fsetup=5Fsuperuse?= =?UTF-8?q?r.py):=20remove=20unused=20import=20and=20function=20setup=5Fsu?= =?UTF-8?q?peruser=20to=20improve=20code=20readability=20and=20maintainabi?= =?UTF-8?q?lity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_setup_superuser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_setup_superuser.py b/tests/test_setup_superuser.py index 40920b464..8cdcfc0c8 100644 --- a/tests/test_setup_superuser.py +++ b/tests/test_setup_superuser.py @@ -1,11 +1,10 @@ -from unittest.mock import patch, Mock, MagicMock, call +from unittest.mock import patch, MagicMock from langflow.services.database.models.user.user import User from langflow.services.settings.constants import ( DEFAULT_SUPERUSER, DEFAULT_SUPERUSER_PASSWORD, ) from langflow.services.utils import ( - setup_superuser, teardown_superuser, )