Skip to content

Commit 64a36ce

Browse files
committed
skip tests that rely on vdat_call to error
1 parent 9c6443e commit 64a36ce

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

tests/testthat/test-vdat_inspect.R

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ test_that("vdat_inspect invisibly returns a data frame", {
132132
})
133133

134134
test_that("errors appropriately", {
135+
skip_on_cran()
136+
135137
expect_error(
136138
vdat_inspect("gibberish"),
137139
"Is the location of gibberish correct"

tests/testthat/test-vdat_template.R

+6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,25 @@ test_that("error if not csv", {
66
})
77

88
test_that("partial matching works", {
9+
skip_on_cran()
10+
911
expect_equal(
1012
vdat_template(),
1113
vdat_template(format = "csv")
1214
)
1315
})
1416

1517
test_that("print works", {
18+
skip_on_cran()
19+
1620
expect_output(
1721
vdat_template(print = TRUE)
1822
)
1923
})
2024

2125
test_that("correct types", {
26+
skip_on_cran()
27+
2228
template <- vdat_template()
2329

2430
expect_type(template, "list")

tests/testthat/test-vdat_to_csv.R

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ test_that("errors if multiple files are provided", {
146146

147147

148148
test_that("errors if file can't be found", {
149+
skip_on_cran()
150+
149151
expect_error(
150152
vdat_to_csv("mising_file"),
151153
"Is the location of mising_file correct"

tests/testthat/test-vdat_to_json.R

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ test_that("errors if multiple files are provided", {
146146

147147

148148
test_that("errors if file can't be found", {
149+
skip_on_cran()
150+
149151
expect_error(
150152
vdat_to_json("mising_file"),
151153
"Is the location of mising_file correct"

0 commit comments

Comments
 (0)