We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d58dc commit d71efb8Copy full SHA for d71efb8
tests/unit/contentproviders/test_figshare.py
@@ -21,16 +21,9 @@
21
22
23
@pytest.mark.parametrize("link,expected", test_content_ids)
24
-def test_content_id(link, expected, requests_mock):
25
- def mocked_get(req, context):
26
- if req.url.startswith("https://doi.org"):
27
- context.status_code = 302
28
- context.headers["Location"] = link
29
- return link
30
-
31
- requests_mock.get(re.compile("https://"), text=mocked_get)
+def test_content_id(link, expected):
32
fig = Figshare()
33
- fig.detect("10.6084/m9.figshare.9782777")
+ fig.detect(link)
34
assert fig.content_id == expected
35
36
0 commit comments