mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user