Skip to content

Commit

Permalink
test: fix collection test (box/box-codegen#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Nov 21, 2024
1 parent 8b84642 commit 91119e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "bafbfd8", "specHash": "6d5f53e", "version": "1.7.0" }
{ "engineHash": "cb62e1c", "specHash": "6d5f53e", "version": "1.7.0" }
6 changes: 2 additions & 4 deletions test/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ def testCollections():
collection_items_after_update: ItemsOffsetPaginated = (
client.collections.get_collection_items(favourite_collection.id)
)
assert (
len(collection_items_after_update.entries) == len(collection_items.entries) + 1
)
assert collection_items_after_update.total_count == collection_items.total_count + 1
client.folders.update_folder_by_id(folder.id, collections=[])
collection_items_after_remove: ItemsOffsetPaginated = (
client.collections.get_collection_items(favourite_collection.id)
)
assert len(collection_items_after_remove.entries) == len(collection_items.entries)
assert collection_items_after_remove.total_count == collection_items.total_count
client.folders.delete_folder_by_id(folder.id)

0 comments on commit 91119e1

Please sign in to comment.