We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04b9c3 commit fb1e3b9Copy full SHA for fb1e3b9
tests/integration/test_task.py
@@ -23,12 +23,11 @@ def test_task_errors(dataset, image_url):
23
])
24
assert task in client.get_user().created_tasks()
25
task.wait_till_done()
26
- assert task.status == "FAILED"
+ assert task.status == "COMPLETE"
27
+ assert len(task.failed_data_rows) > 0
28
assert task.errors is not None
- assert 'message' in task.errors
29
- with pytest.raises(Exception) as exc_info:
30
- task.result
31
- assert str(exc_info.value).startswith("Job failed. Errors : {")
+ assert 'message' in task.errors[0]
+ assert len(task.result) == 0
32
33
34
def test_task_success_json(dataset, image_url):
0 commit comments