amoghrajesh commented on code in PR #52422:
URL: https://github.com/apache/airflow/pull/52422#discussion_r2174297480


##########
providers/yandex/tests/unit/yandex/operators/test_yq.py:
##########
@@ -54,7 +52,8 @@ def setup_method(self):
     def test_execute_query(self, mock_get_connection):
         mock_get_connection.return_value = Connection(extra={"oauth": 
OAUTH_TOKEN})
         operator = YQExecuteQueryOperator(task_id="simple_sql", sql="select 
987", folder_id="my_folder_id")
-        context = {"ti": MagicMock()}
+        mock_ti = MagicMock()
+        context = {"ti": mock_ti, "task_instance": mock_ti}

Review Comment:
   Purely based on count heuristics and personal opinion, context["ti"] (243 
occurrences) > context["task_instance"] (76 occurrences), I prefer the former.



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