Esempio n. 1
0
def test_decode_doi():
    doi = "10.1007/978-1-4615-7419-4_6"
    d = pybtex.database.Entry(
        "misc", fields=[("doi", doi), ("note", "Online; accessed 19-February-2019")]
    )
    out = betterbib.decode(d)
    assert out.fields["doi"] == doi
Esempio n. 2
0
def test_decode():
    url = "https://www.wolframalpha.com/input/?i=integrate+from+0+to+2pi+(cos(x)+e%5E(i+*+(m+-+n)+*+x))"
    entry = pybtex.database.Entry(
        "misc", fields=[("url", url), ("note", "Online; accessed 19-February-2019")]
    )
    out = betterbib.decode(entry)
    assert out.fields["url"] == url