Skip to content

Commit 556f880

Browse files
committed
Remove document_count property from inbox information
Use list-documents instead to get that information.
1 parent 02d6f80 commit 556f880

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

smartextract/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ class InboxInfo(ResourceInfo):
246246
may be associated to multiple inboxes).
247247
"""
248248

249-
document_count: int = Field(description="Total number of documents in the inbox.")
250249
pipeline_id: UUID = Field(
251250
description="Pipeline used to process documents in the inbox."
252251
)

tests/test_sdk.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def test_get_resource_info(
137137
assert isinstance(inbox, InboxInfo)
138138
assert inbox.name == "Test Inbox"
139139
assert inbox.pipeline_id == lua_pipeline_id
140-
assert inbox.document_count >= 1
141140

142141

143142
def test_list_permissions(client, inbox_id, my_email):
@@ -310,7 +309,6 @@ def test_create_inbox(client, lua_pipeline_id, ocr_alias):
310309

311310
assert inbox_info.type == "inbox"
312311
assert inbox_info.name == name
313-
assert inbox_info.document_count == 0
314312
assert inbox_info.pipeline_id == lua_pipeline_id
315313
# Don't test if inbox_info.ocr_id is ocr_alias
316314

tests/test_sdk_async.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ async def test_get_resource_info(
130130
assert isinstance(inbox, InboxInfo)
131131
assert inbox.name == "Test Inbox"
132132
assert inbox.pipeline_id == lua_pipeline_id
133-
assert inbox.document_count >= 1
134133

135134

136135
async def test_list_permissions(aclient: AsyncClient, inbox_id, my_email):
@@ -296,7 +295,6 @@ async def test_create_inbox(aclient: AsyncClient, lua_pipeline_id, ocr_alias):
296295
inbox_info = await aclient.get_resource_info(str(inbox_id))
297296
assert inbox_info.type == "inbox"
298297
assert inbox_info.name == name
299-
assert inbox_info.document_count == 0
300298
assert inbox_info.pipeline_id == lua_pipeline_id
301299
# Don't test if inbox_info.ocr_id is ocr_alias
302300

0 commit comments

Comments
 (0)