mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-21 21:29:48 +08:00

Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
10 lines
319 B
Python
10 lines
319 B
Python
from unittest.mock import patch
|
|
|
|
from app_fixture import mock_user # type: ignore
|
|
|
|
|
|
def test_post_requires_login(app):
|
|
with app.test_client() as client, patch("flask_login.utils._get_user", mock_user):
|
|
response = client.get("/console/api/data-source/integrates")
|
|
assert response.status_code == 200
|