1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-22 14:53:57 +01:00
opensensmapR/tests/testthat/test_api.R
Norwin f69cf62b27
fail gracefully when api is not available (#27)
more robust error handling when API not available (#26)
2019-05-16 12:35:52 +02:00

7 lines
214 B
R

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')
})