Skip to content

Commit

Permalink
adding a test to see if result count is calculating correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yyassi-heartex committed Nov 19, 2024
1 parent 4847757 commit 027aa16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions label_studio/tests/sdk/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def test_export_tasks(django_live_url, business_client):
assert single_task.data['my_text'] == 'Test task 7'
assert single_task.total_annotations == 1
assert single_task.updated_by == [{'user_id': business_client.user.id}]
assert single_task.annotations[0].result_count == 1

exported_tasks = [task for task in ls.tasks.list(project=p.id, fields='all') if task.annotations]
assert len(exported_tasks) == 1
Expand Down

0 comments on commit 027aa16

Please sign in to comment.