ashb commented on a change in pull request #15022:
URL: https://github.com/apache/airflow/pull/15022#discussion_r601870969
##########
File path: tests/providers/apache/cassandra/hooks/test_cassandra.py
##########
@@ -72,20 +72,17 @@ def setUp(self):
hook.shutdown_cluster()
def test_get_conn(self):
- with mock.patch.object(Cluster, "connect") as mock_connect, mock.patch(
- "socket.getaddrinfo", return_value=[]
Review comment:
The previous mocking didn't work anymore, but this was to some extend,
testing the internals of Cassandra.
I have replaced it with just ensuring we call `Cluster() correctly here.
--
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]