Bug in figshare?

It looks like the new figshare redirects may drop the version suffix causing two tests to fail (see the test comments).
pull/1001/head
Simon Li 2021-01-08 23:48:58 +00:00
rodzic b032ad7c4b
commit bcc97a2382
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -50,10 +50,16 @@ test_dois_links = [
(
"https://doi.org/10.6084/m9.figshare.9782777.v1",
{"host": test_fig.hosts[0], "article": "9782777", "version": "1"},
# $ curl -sIL https://doi.org/10.6084/m9.figshare.9782777.v1 | grep location
# location: https://figshare.com/articles/Binder-ready_openSenseMap_Analysis/9782777/1
# location: https://figshare.com/articles/code/Binder-ready_openSenseMap_Analysis/9782777
),
(
"https://doi.org/10.6084/m9.figshare.9782777.v3",
{"host": test_fig.hosts[0], "article": "9782777", "version": "3"},
# $ curl -sIL https://doi.org/10.6084/m9.figshare.9782777.v3 | grep location
# location: https://figshare.com/articles/Binder-ready_openSenseMap_Analysis/9782777/3
# location: https://figshare.com/articles/code/Binder-ready_openSenseMap_Analysis/9782777
),
(
"https://figshare.com/articles/title/97827771234",