Blob Blame History Raw
From dbbc3684b24210b82f171f24f583bd1a085ed6bb Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sat, 21 Apr 2018 06:25:19 -0400
Subject: [PATCH 9/9] Skip shiny tests.

These would cause a dependency loop.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 tests/testthat/test-params.R | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/testthat/test-params.R b/tests/testthat/test-params.R
index 5c55c47a..a0762411 100644
--- a/tests/testthat/test-params.R
+++ b/tests/testthat/test-params.R
@@ -32,6 +32,7 @@ test_that("setting of params works", {
 test_that("params render their UI", {
 
   skip_on_cran()
+  skip_if_not_installed("shiny")
 
   # file input is always NULL
   ui <- params_value_to_ui(shiny::fileInput, "anything", TRUE)
@@ -59,6 +60,8 @@ test_that("params render their UI", {
 })
 
 test_that("parameters are configurable", {
+  skip_if_not_installed("shiny")
+
   # Unknown input types are not configurable.
   expect_error(params_configurable(list(
       input = "unsupported")))
@@ -112,6 +115,7 @@ test_that("parameters are configurable", {
 test_that("params hidden w/o show_default", {
 
   skip_on_cran()
+  skip_if_not_installed("shiny")
 
   # file input is always NULL
   ui <- params_value_to_ui(shiny::fileInput, "anything", FALSE)
-- 
2.21.0