shahar1 commented on code in PR #66977:
URL: https://github.com/apache/airflow/pull/66977#discussion_r3249417576


##########
providers/amazon/tests/unit/amazon/aws/operators/test_emr_serverless.py:
##########
@@ -111,7 +106,6 @@ def 
test_execute_successfully_with_wait_for_completion(self, mock_conn, mock_wai
 
         
mock_conn.start_application.assert_called_once_with(applicationId=application_id)
         assert id == application_id
-        mock_conn.get_application.call_count == 2

Review Comment:
   The thing is that `get_application` is never called in the first place in 
`EmrServerlessCreateApplicationOperator` :)
   The original line didn't fail because it wasn't an assertion, but once we 
add an `assert` - it will fail (`assert 0 == 2`).



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