You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/12/06 17:31:20 UTC

[GitHub] [airflow] ferruzzi commented on a diff in pull request #28139: Migrate amazon provider sensor tests from `unittests` to `pytest`

ferruzzi commented on code in PR #28139:
URL: https://github.com/apache/airflow/pull/28139#discussion_r1041257471


##########
tests/providers/amazon/aws/sensors/test_batch.py:
##########
@@ -44,45 +42,38 @@ def setUp(self):
     @mock.patch.object(BatchClientHook, "get_job_description")
     def test_poke_on_success_state(self, mock_get_job_description):
         mock_get_job_description.return_value = {"status": "SUCCEEDED"}
-        self.assertTrue(self.batch_sensor.poke({}))
+        assert self.batch_sensor.poke({})

Review Comment:
   Non-blocking suggestion:  missed one `is True` 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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org