From e5a6f6ce565875ea11b9b956c68c9fa6312354c8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 5 May 2022 11:27:00 -0700 Subject: fix python tests for CSL HTTP 400 behavior change --- python/tests/web_citation_csl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/tests') diff --git a/python/tests/web_citation_csl.py b/python/tests/web_citation_csl.py index e3dbec2b..9dfe94f6 100644 --- a/python/tests/web_citation_csl.py +++ b/python/tests/web_citation_csl.py @@ -54,8 +54,8 @@ def test_release_bibtex(app, api): rv = app.get("/release/{}".format(r1edit.ident)) assert rv.status_code == 200 assert b"BibTeX" not in rv.data - with pytest.raises(ValueError): - rv = app.get("/release/{}.bib".format(r1edit.ident)) + rv = app.get("/release/{}.bib".format(r1edit.ident)) + assert rv.status_code == 400 # create release can have citeproc run on it (no authors) eg = quick_eg(api) -- cgit v1.2.3