potiuk commented on code in PR #52422:
URL: https://github.com/apache/airflow/pull/52422#discussion_r2173830628
##########
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:
> should context["task_instance"] in persist() be rewritten into
context["ti"] as well?
That's a good question. To be honest maybe @kaxil @amoghrajesh @ashb can
answer better what intention is there for context["ti"] - vs.
context["task_instance"] ?
--
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]