Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
test_controllers.py11 linesDownload Raw Back to controllers
1from unittest.mock import patch2 3from app_fixture import app, mock_user4 5 6def test_post_requires_login(app):7    with app.test_client() as client:8        with patch("flask_login.utils._get_user", mock_user):9            response = client.get("/console/api/data-source/integrates")10            assert response.status_code == 20011