aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-06-23 18:44:31 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-06-23 18:44:31 -0700
commit5f631cba958c1b67c64202f034569f788689e289 (patch)
treed941d5e3a0d7f0890f4906c70e23eae7d988873a /python/tests
parent35f29b0b4cb9c921c0ca03e8ac11dcd185df2fd3 (diff)
downloadfatcat-5f631cba958c1b67c64202f034569f788689e289.tar.gz
fatcat-5f631cba958c1b67c64202f034569f788689e289.zip
tests: small citeproc style changes (to match Pipfile.lock update)
Diffstat (limited to 'python/tests')
-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')