Skip to content

Commit

Permalink
Prøv med en if-løkke
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn committed Dec 18, 2024
1 parent 061b7fc commit c6ccc18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-auto-report-db.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ test_that("sample auto report data can be read from db", {
# Test autoReportServer2 with db.
# Tests are copied from test-moduleAutoReport.R since the current file
# is ready for db.
if (is.null(check_db(is_test_that = FALSE))) {
withr::with_envvar(
new = c(
"FALK_EXTENDED_USER_RIGHTS" = "[{\"A\":80,\"R\":\"LC\",\"U\":1},{\"A\":80,\"R\":\"SC\",\"U\":2},{\"A\":81,\"R\":\"LC\",\"U\":2}]",
Expand Down Expand Up @@ -174,7 +175,7 @@ withr::with_envvar(

}
)

}


# remove test db
Expand Down

0 comments on commit c6ccc18

Please sign in to comment.