Skip to content

Commit e2303c7

Browse files
author
Diego Ardila
committed
fix tests part 2
1 parent 8045327 commit e2303c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_dataset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ def test_dataset_append_async(dataset: Dataset):
168168
job = dataset.append(make_dataset_items(), asynchronous=True)
169169
job.sleep_until_complete()
170170
status = job.status()
171-
status["message"]["Payload"] = ""
171+
status["message"]["PayloadUrl"] = ""
172172
assert status == {
173173
"job_id": job.id,
174174
"status": "Completed",
175175
"message": {
176-
"Payload": "",
176+
"PayloadUrl": "",
177177
"image_upload_step": {"errored": 0, "pending": 0, "completed": 5},
178178
"started_image_processing": f"Dataset: {dataset.id}, Job: {job.id}",
179179
"ingest_to_reupload_queue": {
@@ -203,12 +203,12 @@ def test_dataset_append_async_with_1_bad_url(dataset: Dataset):
203203
with pytest.raises(JobError):
204204
job.sleep_until_complete()
205205
status = job.status()
206-
status["message"]["Payload"] = ""
206+
status["message"]["PayloadUrl"] = ""
207207
assert status == {
208208
"job_id": f"{job.id}",
209209
"status": "Errored",
210210
"message": {
211-
"Payload": "",
211+
"PayloadUrl": "",
212212
"final_error": (
213213
"One or more of the images you attempted to upload did not process"
214214
" correctly. Please see the status for an overview and the errors for "

0 commit comments

Comments
 (0)