From 05ab40146eed73575c6058b23ec01861ea497419 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 26 Jun 2023 23:02:20 -0700 Subject: [PATCH] Optionally skip tests requiring 'mockr' --- tests/testthat/test-drive_get_path.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testthat/test-drive_get_path.R b/tests/testthat/test-drive_get_path.R index 9f90d7c9b..a74056c51 100644 --- a/tests/testthat/test-drive_get_path.R +++ b/tests/testthat/test-drive_get_path.R @@ -23,6 +23,7 @@ test_that("get_last_path_part() works", { }) test_that("resolve_paths() works, basic scenarios", { + skip_if_not_installed("mockr") # a -- b -- c -- d # ??? -- e dr_folder <- @@ -75,6 +76,7 @@ test_that("resolve_paths() works, basic scenarios", { }) test_that("resolve_paths() works, with some name duplication", { + skip_if_not_installed("mockr") # name(id) # ___~(1) __ # / \ \