summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/tests/transform_csl.py5
-rw-r--r--python/tests/web_citation_csl.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/python/tests/transform_csl.py b/python/tests/transform_csl.py
index 6436f876..77ce1bff 100644
--- a/python/tests/transform_csl.py
+++ b/python/tests/transform_csl.py
@@ -55,8 +55,9 @@ def test_csl_pubmed_bibtex(crossref_importer):
number={4},
journal={Roczniki Panstwowego Zakladu Higieny},
author={Mędrela-Kuder and Szymura},
- year={2018}}
+ year={2018}
+ }
""".strip()
assert citeproc_csl(csl, 'harvard1', html=True).strip() == """
- Mędrela-Kuder &amp; Szymura, 2018. Selected anti-health behaviours among women with osteoporosis. <i>Roczniki Panstwowego Zakladu Higieny</i>, 69`(4).
+ Mędrela-Kuder and Szymura (2018) ‘Selected anti-health behaviours among women with osteoporosis’, <i>Roczniki Panstwowego Zakladu Higieny</i>, 69`(4). doi: 10.32394/rpzh.2018.0046.
""".strip()
diff --git a/python/tests/web_citation_csl.py b/python/tests/web_citation_csl.py
index fb3ce58d..50a2d6e8 100644
--- a/python/tests/web_citation_csl.py
+++ b/python/tests/web_citation_csl.py
@@ -23,7 +23,7 @@ def test_release_bibtex(app, api):
json.loads(rv.data.decode('utf-8'))
rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaam/citeproc?style=modern-language-association')
assert rv.status_code == 200
- assert rv.data.decode('utf-8').startswith('Ioannidis, John. “Why Most Published Research Findings Are False”. 2.8 (2005)')
+ assert rv.data.decode('utf-8').startswith('Ioannidis, J.. Why Most Published Research Findings Are False')
# "dummy" demo entity; very minimal metadata
rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaai')