From 8bc7333f8a135a469c6fc2bfb006c1efa6fe8f66 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Tue, 2 Nov 2021 01:26:16 -0500 Subject: [PATCH] skip the skipping tests I don't want to add the withr package dependency ref #330 --- tests/testthat/test-skippers.R | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/tests/testthat/test-skippers.R b/tests/testthat/test-skippers.R index 46d7b91d..7912c8be 100644 --- a/tests/testthat/test-skippers.R +++ b/tests/testthat/test-skippers.R @@ -1,12 +1,11 @@ - -test_that("skip_if_onlyread set", { - # Test that a skip happens - withr::local_envvar(ONLY_READ_TESTS = "yes") - expect_condition(skip_if_onlyread(), class = "skip") -}) - -test_that("skip_if_onlyread not set", { - # Test that a skip doesn't happen - withr::local_envvar(ONLY_READ_TESTS = "") - expect_condition(skip_if_onlyread(), NA, class = "skip") -}) +# test_that("skip_if_onlyread set", { +# # Test that a skip happens +# withr::local_envvar(ONLY_READ_TESTS = "yes") +# expect_condition(skip_if_onlyread(), class = "skip") +# }) +# +# test_that("skip_if_onlyread not set", { +# # Test that a skip doesn't happen +# withr::local_envvar(ONLY_READ_TESTS = "") +# expect_condition(skip_if_onlyread(), NA, class = "skip") +# })