stephen-bracken commented on code in PR #70783:
URL: https://github.com/apache/airflow/pull/70783#discussion_r4015922063
##########
airflow-core/tests/unit/api_fastapi/auth/middlewares/test_refresh_token.py:
##########
@@ -118,10 +122,10 @@ async def test_dispatch_with_refreshed_user(
mock_get_auth_manager.return_value = mock_auth_manager
mock_auth_manager.refresh_user.return_value = refreshed_user
mock_auth_manager.generate_jwt.return_value = "new_token"
- mock_conf.get.return_value = ""
call_next = AsyncMock(return_value=Response())
- response = await middleware.dispatch(mock_request, call_next)
+ with conf_vars({("api", "base_url"): ""}):
Review Comment:
updated conf var
--
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]