gopidesupavan commented on code in PR #45191:
URL: https://github.com/apache/airflow/pull/45191#discussion_r1896355975


##########
tests/api_fastapi/core_api/routes/ui/test_structure.py:
##########
@@ -404,7 +405,7 @@ class TestStructureDataEndpoint:
     def test_should_return_200(self, test_client, params, expected):
         response = test_client.get("/ui/structure/structure_data", 
params=params)
         assert response.status_code == 200
-        assert response.json() == expected
+        assert not DeepDiff(response.json(), expected, ignore_order=True)

Review Comment:
   or else we need to build sort function and sort all the nested keys then 
assert, dont think its worth here? DeepDiff is simple to assert



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