How to use the habanero.exceptions 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-journals.py View on Github external
@raises(exceptions.RequestError)
@vcr.use_cassette('test/vcr_cassettes/journals_fail_limit.yaml')
def test_journals_fail_limit():
    "journals - fails on wrong input type to limit"
    cr.journals(limit = 'things')
github sckott / habanero / test / test-funders.py View on Github external
@raises(exceptions.RequestError)
@vcr.use_cassette('test/vcr_cassettes/funders_err_fail_sort.yaml')
def test_funders_fail_sort():
    "funders - fails on wrong input type to offset"
    cr.funders(sort = 'things')