development
Norwin 6 years ago
parent 92cbbcbfc7
commit 32d0cceb28

@ -1,4 +1,4 @@
exclusions: list('inst/doc/osem-intro.R')
exclusions: list.files(path = 'inst/doc', full.names = T)
linters: with_defaults(
# we use snake case
camel_case_linter = NULL,

@ -131,5 +131,5 @@ build_archive_url = function (date, box, sensor) {
#' https://github.com/sensebox/osem-archiver/blob/612e14b/helpers.sh#L66
osem_box_to_archivename = function (box) {
name = gsub('[^A-Za-z0-9._-]', '_', box$name)
paste(box$X_id, name, sep='-')
paste(box$X_id, name, sep = '-')
}

@ -20,7 +20,7 @@ test_that('both from and to are required when requesting boxes, error otherwise'
test_that('a list of boxes with phenomenon filter returns only the requested phenomenon', {
check_api()
boxes = osem_boxes(phenomenon = 'Temperatur', date=Sys.time())
boxes = osem_boxes(phenomenon = 'Temperatur', date = Sys.time())
expect_true(all(grep('Temperatur', boxes$phenomena)))
})

Loading…
Cancel
Save