Skip to content

Commit

Permalink
[feat] add assert checking key
Browse files Browse the repository at this point in the history
  • Loading branch information
erik1110 committed Sep 16, 2023
1 parent f5d80e7 commit 036fc21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ccip/tests/api/test_ccip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
endpoint = "/ccip/"

def assert_data_structure(data, key):
assert key in data
items = data.get(key, [])
for item in items:
assert 'id' in item
Expand Down

0 comments on commit 036fc21

Please sign in to comment.