controller test (#9469)
This commit is contained in:
10
api/tests/integration_tests/controllers/test_controllers.py
Normal file
10
api/tests/integration_tests/controllers/test_controllers.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from unittest.mock import patch
|
||||
|
||||
from app_fixture import app, mock_user
|
||||
|
||||
|
||||
def test_post_requires_login(app):
|
||||
with app.test_client() as client:
|
||||
with patch("flask_login.utils._get_user", mock_user):
|
||||
response = client.get("/console/api/data-source/integrates")
|
||||
assert response.status_code == 200
|
Reference in New Issue
Block a user