You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_controllers.py 319B

123456789
  1. from unittest.mock import patch
  2. from app_fixture import mock_user # type: ignore
  3. def test_post_requires_login(app):
  4. with app.test_client() as client, patch("flask_login.utils._get_user", mock_user):
  5. response = client.get("/console/api/data-source/integrates")
  6. assert response.status_code == 200