File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments