diff --git a/tests/testthat/test-get_dataset.R b/tests/testthat/test-get_dataset.R index 34ddbca..3b9b9d1 100644 --- a/tests/testthat/test-get_dataset.R +++ b/tests/testthat/test-get_dataset.R @@ -44,3 +44,9 @@ test_that("get_dataset errors properly", { regexp = "Did you mean .+?gp-practice-populations.+?\\?" ) }) + +test_that("get_dataset filters error properly", { + expect_error(get_dataset("gp-practice-populations", col_select = "Non-existent column"), + regexp = "API error" + ) +})