Skip to content

Commit

Permalink
reorganise tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Dec 18, 2024
1 parent 3feb79b commit 9874ab8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-validate_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ test_that("v4 validation works", {
)
})

test_that("target keys with 2 properties throws error", {
test_that("v4.0.1 target keys with 2 properties throws error", {
skip_if_offline()
config_path <- testthat::test_path("testdata", "v4.0.1-tasks-2-target_keys.json")
out <- suppressMessages(
Expand All @@ -269,7 +269,9 @@ test_that("target keys with 2 properties throws error", {
"must NOT have more than 1 items"
)
expect_equal(nrow(attr(out, "errors")), 2L)
})

test_that("v4.0.1 target keys with NULL properties passes", {
# Ensure NULL target keys are still allowed.
config_path <- testthat::test_path("testdata", "v4.0.1-tasks-null-target_keys.json")
out <- suppressMessages(
Expand Down

0 comments on commit 9874ab8

Please sign in to comment.