Skip to content

Commit a0ea11e

Browse files
committed
feat: add deepdiff to layout tests
risk: nonprod
1 parent 70fe6dd commit a0ea11e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gooddata-sdk/test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ urllib3==1.26.9
88
python-dotenv~=1.0.0
99
attrs>=21.4.0,<=24.2.0
1010
cattrs>=22.1.0,<=24.1.1
11+
deepdiff~=8.5.0

gooddata-sdk/tests/catalog/test_catalog_workspace_content.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from unittest.mock import MagicMock
88

99
import attrs
10+
from deepdiff import DeepDiff
1011
from gooddata_sdk import (
1112
CatalogDatasetWorkspaceDataFilterIdentifier,
1213
CatalogDeclarativeAnalytics,
@@ -111,7 +112,7 @@ def test_load_and_put_declarative_ldm(test_config):
111112

112113
sdk.catalog_workspace_content.load_and_put_declarative_ldm(identifier, path, standalone_copy=True)
113114
ldm_o = sdk.catalog_workspace_content.get_declarative_ldm(identifier)
114-
assert ldm_e != ldm_o
115+
assert DeepDiff(ldm_e, ldm_o) == {}
115116
ldm_e.remove_wdf_refs()
116117
assert ldm_e == ldm_o
117118
assert ldm_e.to_api().to_dict() == ldm_o.to_api().to_dict()

0 commit comments

Comments
 (0)