This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 38acb694d19 Fix test_should_return_200_with_hitl assertion order
(#55338)
38acb694d19 is described below
commit 38acb694d19c682da2264469ad79463e55fad458
Author: GPK <[email protected]>
AuthorDate: Sun Sep 7 07:40:42 2025 +0100
Fix test_should_return_200_with_hitl assertion order (#55338)
---
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_dags.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_dags.py
b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_dags.py
index d6c4794826a..f85d7bda49b 100644
--- a/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_dags.py
+++ b/airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_dags.py
@@ -215,7 +215,9 @@ class TestGetDagRuns(TestPublicDagEndpoint):
# Check pending_actions structure when specified
if expected_pending_actions is not None:
for dag_json in body["dags"]:
- assert dag_json["pending_actions"] == expected_pending_actions
+ pending_actions = dag_json["pending_actions"]
+ pending_actions.sort(key=lambda x: x["subject"])
+ assert pending_actions == expected_pending_actions
def test_should_response_401(self, unauthenticated_test_client):
response = unauthenticated_test_client.get("/dags", params={})