Skip to content

Commit bcc97a2

Browse files
committed
Bug in figshare?
It looks like the new figshare redirects may drop the version suffix causing two tests to fail (see the test comments).
1 parent b032ad7 commit bcc97a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/contentproviders/test_figshare.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,16 @@ def test_content_id(link, expected):
5050
(
5151
"https://doi.org/10.6084/m9.figshare.9782777.v1",
5252
{"host": test_fig.hosts[0], "article": "9782777", "version": "1"},
53+
# $ curl -sIL https://doi.org/10.6084/m9.figshare.9782777.v1 | grep location
54+
# location: https://figshare.com/articles/Binder-ready_openSenseMap_Analysis/9782777/1
55+
# location: https://figshare.com/articles/code/Binder-ready_openSenseMap_Analysis/9782777
5356
),
5457
(
5558
"https://doi.org/10.6084/m9.figshare.9782777.v3",
5659
{"host": test_fig.hosts[0], "article": "9782777", "version": "3"},
60+
# $ curl -sIL https://doi.org/10.6084/m9.figshare.9782777.v3 | grep location
61+
# location: https://figshare.com/articles/Binder-ready_openSenseMap_Analysis/9782777/3
62+
# location: https://figshare.com/articles/code/Binder-ready_openSenseMap_Analysis/9782777
5763
),
5864
(
5965
"https://figshare.com/articles/title/97827771234",

0 commit comments

Comments
 (0)