10 lines
319 B
Python
Raw Permalink Normal View History

2024-10-18 02:23:36 +02:00
from unittest.mock import patch
2024-12-24 18:38:51 +08:00
from app_fixture import mock_user # type: ignore
2024-10-18 02:23:36 +02:00
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