xvega commented on code in PR #62369:
URL: https://github.com/apache/airflow/pull/62369#discussion_r2929814232
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_grid.py:
##########
@@ -1114,3 +1115,62 @@ def test_structure_with_depth(self, test_client, dag_id,
params, expected_task_i
nodes = response.json()
task_ids = sorted([node["id"] for node in nodes])
assert task_ids == expected_task_ids, description
+
+ # ------------------------------------------------------------------
helpers
Review Comment:
Removed!
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_grid.py:
##########
@@ -1114,3 +1115,62 @@ def test_structure_with_depth(self, test_client, dag_id,
params, expected_task_i
nodes = response.json()
task_ids = sorted([node["id"] for node in nodes])
assert task_ids == expected_task_ids, description
+
+ # ------------------------------------------------------------------
helpers
+
+ @staticmethod
+ def _parse_ndjson(response) -> list[dict]:
+ """Parse NDJSON streaming response into a list of dicts."""
+ return [json.loads(line) for line in response.text.splitlines() if
line.strip()]
+
+ # ------------------------------------------------------------------ tests
Review Comment:
removed!
--
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]