From 9874ab8724b59fd24353672d20e952128ddb2f05 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Wed, 18 Dec 2024 11:51:37 +0200 Subject: [PATCH] reorganise tests --- tests/testthat/test-validate_config.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-validate_config.R b/tests/testthat/test-validate_config.R index cbd64e1..0ab993b 100644 --- a/tests/testthat/test-validate_config.R +++ b/tests/testthat/test-validate_config.R @@ -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( @@ -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(