1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-23 07:53:58 +01:00
opensensmapR/tests/testthat/test_api.R

8 lines
214 B
R
Raw Permalink Normal View History

context('API error handling')
test_that('unavailable API yields informative error message', {
expect_error({
osem_boxes(endpoint = 'example.zip')
}, 'The API at example.zip is currently not available')
})