Skip to content

Commit

Permalink
Assert dict with deepdiff (#45191)
Browse files Browse the repository at this point in the history
  • Loading branch information
gopidesupavan authored Dec 24, 2024
1 parent 43d7c1c commit aa30ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@
"beautifulsoup4>=4.7.1",
# Coverage 7.4.0 added experimental support for Python 3.12 PEP669 which we use in Airflow
"coverage>=7.4.0",
"deepdiff>=8.1.1",
"jmespath>=0.7.0",
"kgb>=7.0.0",
"pytest-asyncio>=0.23.6",
Expand Down
3 changes: 2 additions & 1 deletion tests/api_fastapi/core_api/routes/ui/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import pendulum
import pytest
from deepdiff import DeepDiff

from airflow.models import DagBag
from airflow.operators.empty import EmptyOperator
Expand Down Expand Up @@ -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)

def test_should_return_404(self, test_client):
response = test_client.get("/ui/structure/structure_data", params={"dag_id": "not_existing"})
Expand Down

0 comments on commit aa30ed9

Please sign in to comment.