rawwar commented on code in PR #44246:
URL: https://github.com/apache/airflow/pull/44246#discussion_r1852297582
##########
tests/api_fastapi/core_api/routes/public/test_task_instances.py:
##########
@@ -1671,3 +1673,293 @@ def test_raises_404_for_nonexistent_task_instance(self,
test_client, session):
assert response.json() == {
"detail": "The Task Instance with dag_id:
`example_python_operator`, run_id: `TEST_DAG_RUN_ID`, task_id:
`nonexistent_task`, try_number: `0` and map_index: `-1` was not found"
}
+
+
+class TestPostSetTaskInstanceState(TestTaskInstanceEndpoint):
+ @mock.patch("airflow.models.dag.DAG.set_task_instance_state")
+ def test_should_assert_call_mocked_api(self, mock_set_task_instance_state,
test_client, session):
+ self.create_task_instances(session)
+ run_id = "TEST_DAG_RUN_ID"
Review Comment:
also,we denote them in capital letters to indicate that they are constants.
--
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]