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

Function test_readme_example

tests/test_onecite_basic.py:14–25  ·  view source on GitHub ↗

Make sure the snippet we show in README.md keeps working.

()

Source from the content-addressed store, hash-verified

12
13
14def test_readme_example():
15 """Make sure the snippet we show in README.md keeps working."""
16 result = process_references(
17 input_content="10.1038/nature14539\n\nAttention is all you need\nVaswani et al.\nNIPS 2017",
18 input_type="txt",
19 template_name="journal_article_full",
20 output_format="bibtex",
21 interactive_callback=_auto_pick,
22 )
23 assert isinstance(result, dict)
24 assert result.get("results"), "Expected at least one formatted entry"
25 assert "report" in result
26

Callers

nothing calls this directly

Calls 1

process_referencesFunction · 0.90

Tested by

no test coverage detected