Skip to content

Commit 422af54

Browse files
author
dsamaey
committed
Issue #747 weird test failure
1 parent e3c05a6 commit 422af54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rest/test_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_execute_batch(con100, requests_mock, tmpdir):
7979
}
8080
},
8181
)
82-
requests_mock.head(API_URL + "/jobs/f00ba5/files/output.tiff", headers={"Content-Length": f"{len("tiffdata")}"})
82+
requests_mock.head(API_URL + "/jobs/f00ba5/files/output.tiff", headers={"Content-Length": str(len("tiffdata"))})
8383
requests_mock.get(API_URL + "/jobs/f00ba5/files/output.tiff", text="tiffdata")
8484

8585
requests_mock.get(API_URL + "/jobs/f00ba5/logs", json={'logs': []})
@@ -238,7 +238,7 @@ def test_execute_batch_with_soft_errors(con100, requests_mock, tmpdir, error_res
238238
}
239239
},
240240
)
241-
requests_mock.head(API_URL + "/jobs/f00ba5/files/output.tiff", headers={"Content-Length": f"{len("tiffdata")}"})
241+
requests_mock.head(API_URL + "/jobs/f00ba5/files/output.tiff", headers={"Content-Length": str(len("tiffdata"))})
242242
requests_mock.get(API_URL + "/jobs/f00ba5/files/output.tiff", text="tiffdata")
243243
requests_mock.get(API_URL + "/jobs/f00ba5/logs", json={'logs': []})
244244

0 commit comments

Comments
 (0)