Skip to content

Commit 7780dad

Browse files
author
Liam Hobby
committed
Fix issues with tests
1 parent 30d15c2 commit 7780dad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/testthat/test-codelist.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ test_that("create_cat_var", {
192192
adsl_spec$derivations,
193193
codelist = codelist,
194194
supp = adsl_spec$supp
195-
))
195+
)) %>%
196+
select_dataset("ADSL")
196197

197198
create_cat_var(dm, spec2, AGE, AGEGR1, AGEGR1N, TRUE) |>
198199
expect_error("Unable to decipher the following group definition: DUMMY. Please check your controlled terminology.")
@@ -215,7 +216,8 @@ test_that("create_cat_var", {
215216
adsl_spec$derivations,
216217
codelist = codelist,
217218
supp = adsl_spec$supp
218-
))
219+
)) %>%
220+
select_dataset("ADSL")
219221

220222
create_cat_var(dm, spec2, AGE, AGEGR1, AGEGR1N, create_from_decode = TRUE) |>
221223
expect_error("Group definitions are not exclusive. Please check your controlled terminology")

0 commit comments

Comments
 (0)