ericpp commented on a change in pull request #14869:
URL: https://github.com/apache/airflow/pull/14869#discussion_r602455284



##########
File path: airflow/providers/mysql/hooks/mysql.py
##########
@@ -52,7 +52,10 @@ def __init__(self, *args, **kwargs) -> None:
 
     def set_autocommit(self, conn: Connection, autocommit: bool) -> None:  # 
noqa: D403

Review comment:
       The `TestMySqlHookMySqlConnectorPython` class is a version of the 
existing `TestMySqlHook` class that works for the `mysql-connector-python` 
client. It seems like the existing `TestMySqlHook` class only supports the 
`MySQLdb` client. 
   
   I moved the code that works for both clients from `TestMySqlHook` into 
`TestMySqlBulk`
   
   I did add a `test_get_autocommit` method to both test classes and can remove 
that if needed.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to