MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / _crossref_payload

Function _crossref_payload

tests/preprocess/fetch/test_doi.py:16–33  ·  view source on GitHub ↗
(**overrides)

Source from the content-addressed store, hash-verified

14
15
16def _crossref_payload(**overrides):
17 base = {
18 "status": "ok",
19 "message": {
20 "DOI": "10.1234/example.2024.001",
21 "URL": "https://example.com/paper",
22 "publisher": "Example Press",
23 "title": ["A Worked Example of DOI Resolution"],
24 "container-title": ["Journal of Synthetic Tests"],
25 "issued": {"date-parts": [[2024, 4, 15]]},
26 "author": [
27 {"given": "Alice", "family": "Smith"},
28 {"given": "Bob", "family": "Jones"},
29 ],
30 },
31 }
32 base["message"].update(overrides)
33 return base
34
35
36class ResolveDoiTests(unittest.IsolatedAsyncioTestCase):

Calls

no outgoing calls

Tested by

no test coverage detected