Skip to content

Commit 481edd3

Browse files
committed
some tests
1 parent 5e80f72 commit 481edd3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/test_biotools_upload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,17 @@ def test_write_upload_report_csv(tmp_path):
284284
assert rows[0]["bio_tools_url"] == "https://bio.tools/api/tool/tool-one"
285285
assert rows[0]["error"] == ""
286286

287-
# Check failed entry has no URL but has error
287+
# Check failed entry with validation error has no URL but has error
288288
assert rows[1]["biotoolsID"] == "tool-two"
289289
assert rows[1]["status"] == "failed"
290290
assert rows[1]["bio_tools_url"] == ""
291291
assert "Validation error" in rows[1]["error"]
292292
assert rows[1]["response_code"] == "400"
293293

294-
# Check skipped entry has no URL
294+
# Check skipped entry (already exists) still gets a URL
295295
assert rows[2]["biotoolsID"] == "tool-three"
296296
assert rows[2]["status"] == "skipped"
297-
assert rows[2]["bio_tools_url"] == ""
297+
assert rows[2]["bio_tools_url"] == "https://bio.tools/api/tool/tool-three"
298298
assert "already exists" in rows[2]["error"]
299299

300300
# Check second uploaded entry also has URL

0 commit comments

Comments
 (0)