MCPcopy Create free account
hub / github.com/HzaCode/OneCite / test_datacite_fallback

Method test_datacite_fallback

tests/test_pipeline_unit.py:129–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 assert info["source"] == "figshare"
128
129 def test_datacite_fallback(self):
130 ident = IdentifierModule()
131 with patch.object(ident, "_query_datacite",
132 return_value={"source": "datacite", "doi": "10.5061/dryad.abc"}):
133 info = ident._extract_zenodo_info("10.5061/dryad.abc")
134 assert info["source"] == "datacite"
135
136
137class TestIdentifierPubMed:

Callers

nothing calls this directly

Calls 2

_extract_zenodo_infoMethod · 0.95
IdentifierModuleClass · 0.90

Tested by

no test coverage detected