diff options
Diffstat (limited to 'python/tests')
-rw-r--r-- | python/tests/web_citation_csl.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/tests/web_citation_csl.py b/python/tests/web_citation_csl.py index 1b6f34e1..ae9bca55 100644 --- a/python/tests/web_citation_csl.py +++ b/python/tests/web_citation_csl.py @@ -1,5 +1,4 @@ - import json import tempfile import pytest @@ -16,6 +15,13 @@ def test_release_bibtex(app): rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaam.bib') assert rv.status_code == 200 assert b'@article{' in rv.data + rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaam/citeproc?style=csl-json') + assert rv.status_code == 200 + # could also rv.get_json() here + 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. “Why Most Published Research Findings Are False”. 2.8 (2005)') # "dummy" demo entity rv = app.get('/release/aaaaaaaaaaaaarceaaaaaaaaai') |