frodo2000 commented on code in PR #74804:
URL: https://github.com/apache/airflow/pull/74804#discussion_r4302498100


##########
providers/snowflake/tests/unit/snowflake/hooks/test_snowflake.py:
##########
@@ -1567,6 +1567,46 @@ def test_get_oauth_token_with_scope(self, 
mock_requests_post):
         assert called_data["scope"] == "default"
         assert called_data["grant_type"] == "client_credentials"
 
+    @mock.patch("requests.post")
+    def test_get_oauth_token_with_password_grant_type(self, 
mock_requests_post):
+        """
+        Verify that `get_oauth_token` returns an access token and includes the
+        provided required parameters for password type of grant in the 
outgoing OAuth request payload.
+        """
+
+        mock_requests_post.return_value = Mock(

Review Comment:
   Spec added. Probably we should create additional PR for check lack of specs 
in whole test files.



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