2121# ------------------------------------------------------------------------------
2222
2323test_that(" For invalid input arguments 'createSeed' throws meaningful exceptions" , {
24+ testthat :: skip_if_not_installed(" httr" )
25+ testthat :: skip_if_not_installed(" glue" )
26+
2427 expect_error(createSeed(numberOfValues = 0 ),
2528 " Argument out of bounds: 'numberOfValues' (0) is out of bounds [1; 1000]" , fixed = TRUE )
2629 expect_error(createSeed(numberOfValues = 1 , minValue = - 1 ),
@@ -32,6 +35,9 @@ test_that("For invalid input arguments 'createSeed' throws meaningful exceptions
3235})
3336
3437test_that(" The results of 'createSeed' depend on the input arguments as expected" , {
38+ testthat :: skip_if_not_installed(" httr" )
39+ testthat :: skip_if_not_installed(" glue" )
40+
3541 expect_length(createSeed(), 1 )
3642 expect_length(createSeed(numberOfValues = 9 ), 9 )
3743
@@ -41,6 +47,9 @@ test_that("The results of 'createSeed' depend on the input arguments as expected
4147})
4248
4349test_that(" 'createSeed' returns valid seed although network connection is missing" , {
50+ testthat :: skip_if_not_installed(" httr" )
51+ testthat :: skip_if_not_installed(" glue" )
52+
4453 expect_warning(seed <- createSeed(
4554 minValue = 100000000 , maxValue = 999999999 ,
4655 test_exception = " network error"
0 commit comments