How to use the habanero.RequestError function in habanero

To help you get started, we’ve selected a few habanero examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sckott / habanero / test / test-works.py View on Github external
@raises(RequestError)
@vcr.use_cassette('test/vcr_cassettes/works_query_filters_not_allowed_with_dois.yaml')
def test_works_query_filters_not_allowed_with_dois():
    "works - param: kwargs - query filters not allowed on works/DOI/ route"
    cr.works(ids = '10.1371/journal.pone.0033693', query_author = 'carl boettiger')
github sckott / habanero / test / test-registration_agency.py View on Github external
@raises(RequestError)
# @raises(ex.HTTPError)
@vcr.use_cassette('test/vcr_cassettes/registration_agency_bad_request.yaml')
def test_registration_agency_bad_request():
    "registration agency - bad request"
    cr.registration_agency(5)