This commit is contained in:
Timothy Jaeryang Baek
2024-12-08 16:01:56 -08:00
parent 8dcee6b6ed
commit 33099bf9e4
27 changed files with 28 additions and 28 deletions

View File

@@ -26,7 +26,7 @@ class TestAuths(AbstractPostgresTest):
}
def test_update_profile(self):
from open_webui.utils.utils import get_password_hash
from open_webui.utils.auth import get_password_hash
user = self.auths.insert_new_auth(
email="john.doe@openwebui.com",
@@ -47,7 +47,7 @@ class TestAuths(AbstractPostgresTest):
assert db_user.profile_image_url == "/user2.png"
def test_update_password(self):
from open_webui.utils.utils import get_password_hash
from open_webui.utils.auth import get_password_hash
user = self.auths.insert_new_auth(
email="john.doe@openwebui.com",
@@ -74,7 +74,7 @@ class TestAuths(AbstractPostgresTest):
assert new_auth is not None
def test_signin(self):
from open_webui.utils.utils import get_password_hash
from open_webui.utils.auth import get_password_hash
user = self.auths.insert_new_auth(
email="john.doe@openwebui.com",

View File

@@ -13,7 +13,7 @@ def mock_webui_user(**kwargs):
@contextmanager
def mock_user(app: FastAPI, **kwargs):
from open_webui.utils.utils import (
from open_webui.utils.auth import (
get_current_user,
get_verified_user,
get_admin_user,