Skip to content

Commit fadd3ab

Browse files
tytalustytalus
authored andcommitted
Fixing test_task_errors when failed task.errors returns a single error
1 parent 1e588fb commit fadd3ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integration/test_task.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ def test_task_errors(dataset, image_url):
2121
]
2222
},
2323
])
24+
2425
assert task in client.get_user().created_tasks()
2526
task.wait_till_done()
2627
assert task.status == "FAILED"
2728
assert len(task.failed_data_rows) > 0
2829
assert task.errors is not None
29-
assert 'message' in task.errors[0]
30-
assert len(task.result) == 0
31-
30+
assert task.errors == "Failed to create data rows after 5 retries. This chunk's data rows will not be imported. Retry by appending them to the dataset."
3231

3332
def test_task_success_json(dataset, image_url):
3433
client = dataset.client

0 commit comments

Comments
 (0)