Skip to content

Commit

Permalink
add test for col_select error
Browse files Browse the repository at this point in the history
  • Loading branch information
csillasch committed Nov 18, 2024
1 parent 52d4964 commit 822e742
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-get_dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
})

0 comments on commit 822e742

Please sign in to comment.