1
0
Fork 0
mirror of https://github.com/sensebox/opensensmapr synced 2025-02-21 21:53:57 +01:00
This commit is contained in:
Norwin 2018-10-20 11:33:04 +02:00
parent 92cbbcbfc7
commit 32d0cceb28
4 changed files with 24 additions and 24 deletions

2
.lintr
View file

@ -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,

View file

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

View file

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