rokadepiyush49-rgb commented on code in PR #77510:
URL: https://github.com/apache/airflow/pull/77510#discussion_r4682127473


##########
providers/amazon/tests/unit/amazon/aws/hooks/test_base_aws.py:
##########
@@ -1118,7 +1120,7 @@ def test_get_session(
             region_name=method_region_name,
             config=mock.ANY,
         )
-        assert mock_session_factory_instance.create_session.assert_called_once
+        mock_session_factory_instance.create_session.assert_called_once()

Review Comment:
   Applied in 9569b955. `get_session()` forwards `deferrable=deferrable` with 
the default `False`, and the test now fails if `True` is passed instead.
   



##########
providers/keycloak/tests/unit/keycloak/auth_manager/test_middleware.py:
##########
@@ -704,7 +704,7 @@ def test_refresh_user_sets_keycloak_cookies(self, 
mock_auth_manager, mock_user):
             None,
         )
         assert seen["authenticated_via"] is trusted_marker
-        mock_auth_manager.refresh_user.asssert_any_call(
+        mock_auth_manager.refresh_user.assert_any_call(
             user=KeycloakAuthManager._attach_keycloak_tokens(mock_user, 
access_token, "refresh_token")
         )

Review Comment:
   Good point, applied in 9569b955. 
`test_refresh_user_clears_refresh_token_cookie` and the test around line 350 
use the same `_attach_keycloak_tokens(...)` form, which is also equivalent to 
`user=mock_user`. I left those as they are to keep this PR to the no-op 
assertions, but I can simplify them here too if you prefer.
   



-- 
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]

Reply via email to