From a0894ba05bc3c3d75a85b9135f7ce0fd4881a87f Mon Sep 17 00:00:00 2001 From: Pieter Huybrechts <48065851+PietrH@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:04:29 +0200 Subject: [PATCH] add test skeletons for #127 --- tests/testthat/test-read_resource.R | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/testthat/test-read_resource.R b/tests/testthat/test-read_resource.R index e0ed4ff6..77ad4726 100644 --- a/tests/testthat/test-read_resource.R +++ b/tests/testthat/test-read_resource.R @@ -95,6 +95,15 @@ test_that("read_resource() returns error on column selection not in schema", { ) }) +test_that("read_resource() returns error on missing columns in data", {}) + +test_that("read_resource() returns error on missing columns in schema", {}) + +test_that("read_resource() returns error on column order mismatch between + schema and data", {}) + +test_that("read_resource() allows case mismatch between schema and data", {}) + test_that("read_resource() returns error on incorrect Data Package", { expect_error( read_resource(list(), "deployments"),