From c6ccc18547d3c18c6a01f91dd9e2fc2d3a73f8c9 Mon Sep 17 00:00:00 2001 From: arnfinn Date: Wed, 18 Dec 2024 08:54:45 +0100 Subject: [PATCH] =?UTF-8?q?Pr=C3=B8v=20med=20en=20if-l=C3=B8kke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/testthat/test-auto-report-db.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-auto-report-db.R b/tests/testthat/test-auto-report-db.R index 6ff192db..f340bdaf 100644 --- a/tests/testthat/test-auto-report-db.R +++ b/tests/testthat/test-auto-report-db.R @@ -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}]", @@ -174,7 +175,7 @@ withr::with_envvar( } ) - +} # remove test db