From 546068407aa3d9edb1b1a150cb775789756f2851 Mon Sep 17 00:00:00 2001 From: Scott Chamberlain Date: Sun, 31 Oct 2021 10:04:44 -0700 Subject: [PATCH] fix reg agency test --- test/test-registration_agency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-registration_agency.py b/test/test-registration_agency.py index 882b717..332cd9d 100644 --- a/test/test-registration_agency.py +++ b/test/test-registration_agency.py @@ -1,8 +1,8 @@ import pytest import os import vcr +from requests import HTTPError from habanero import Crossref -from simplejson import JSONDecodeError cr = Crossref() @@ -26,5 +26,5 @@ def test_registration_agency_unicode(): @pytest.mark.vcr def test_registration_agency_bad_request(): "registration agency - bad request" - with pytest.raises(JSONDecodeError): + with pytest.raises(HTTPError): cr.registration_agency(5)