-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add depends_on and in_use_by to product block graphql type (#336)
* Add depends_on and in_use_by to product block graphql type * Bump version to 1.2.3rc5 * Fix ruff issues * add helper function for tests to assert assert no difference - uses deepdiff with its exclude_paths. - change product_blocks graphql schema to use list instead of List --------- Co-authored-by: Tjeerd.Verschragen <tjeerd.verschragen@surf.nl>
- Loading branch information
Showing
8 changed files
with
133 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import json | ||
|
||
from deepdiff import DeepDiff | ||
|
||
|
||
def assert_no_diff(expected, actual, exclude_paths=None): | ||
diff = DeepDiff(expected, actual, ignore_order=True, exclude_paths=exclude_paths) | ||
prettydiff = f"Difference: {json.dumps(diff, indent=2, default=lambda x: str(x))}" | ||
|
||
assert diff == {}, f"Difference between expected and actual output\n{prettydiff}" |