Skip to content

Commit fb1e3b9

Browse files
author
Kevin Kim
committed
Address test failrues in test_task.py
1 parent c04b9c3 commit fb1e3b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/integration/test_task.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ def test_task_errors(dataset, image_url):
2323
])
2424
assert task in client.get_user().created_tasks()
2525
task.wait_till_done()
26-
assert task.status == "FAILED"
26+
assert task.status == "COMPLETE"
27+
assert len(task.failed_data_rows) > 0
2728
assert task.errors is not None
28-
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 : {")
29+
assert 'message' in task.errors[0]
30+
assert len(task.result) == 0
3231

3332

3433
def test_task_success_json(dataset, image_url):

0 commit comments

Comments
 (0)