def test_override_kbs_files_can_take_journals_dict(): journals = {"Journal of Testing": "J.Testing"} reference = "J. Smith, Journal of Testing 42 (2020) 1234" result = extract_references_from_string( reference, override_kbs_files={"journals": journals}) assert result[0]["journal_title"] == ["J.Testing"]
def test_extract_references_from_string(kbs_override): ref_lines = """[9] R. Bousso, JHEP 9906:028 (1999); hep-th/9906022.""" r = extract_references_from_string(ref_lines, override_kbs_files=kbs_override) assert len(r) == 2
def test_extract_references_from_string(kbs_override): ref_lines = """[9] R. Bousso, JHEP 9906:028 (1999); hep-th/9906022.""" r = extract_references_from_string(ref_lines, override_kbs_files=kbs_override) assert len(r["references"]) == 2