pierrejeambrun commented on code in PR #70783:
URL: https://github.com/apache/airflow/pull/70783#discussion_r4338603849
##########
airflow-core/tests/unit/api_fastapi/auth/managers/test_base_auth_manager.py:
##########
@@ -932,3 +932,6 @@ def test_is_authorized_hitl_task(
user = BaseAuthManagerUserTest(name=user_id)
result =
auth_manager.is_authorized_hitl_task(assigned_users=assigned_users, user=user)
assert result == expected
+
+ def test_get_fastapi_middlewares(self, auth_manager):
Review Comment:
I think this should cover the new default instead:
`get_fastapi_middlewares()` returning `[]` isn't changed by this PR. Something
like asserting `get_jwt_refresh_middleware()` returns `[(JWTRefreshMiddleware,
{"skip_path_prefixes": ("/static/",)})]`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]