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


##########
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:
   Yeah it helps they have some useful tools. 
https://zepworks.com/deepdiff/current/. 
   
   Yes deepdiff really useful and nice tool. we use this tool more in our work 
to compare terraform plans(its a huge nested dict :) ). with old state and new 
states change to extract some data for triage. 



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