Skip to content

Commit

Permalink
forgot to add to prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbarks committed May 29, 2024
1 parent 62cbaaf commit 0324035
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/testthat/test-fetch_records.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ test_that("fetch_records works as expected", {


## test header_labs = TRUE, and value_labs TRUE + checkbox_labs FALSE
x3 <- fetch_records(
conn = conn_test,
forms = form_focal,
events = event_focal,
value_labs = TRUE,
header_labs = TRUE,
checkbox_labs = FALSE,
use_factors = FALSE,
dag = FALSE
)

expect_true(all(dict$field_label %in% names(x3)))
check_var <- "Which serious adverse event occurred? (choice=Participant was hospitalized)"
expect_true(all(x3[[check_var]] %in% c("Unchecked", "Checked")))
# x3 <- fetch_records(
# conn = conn_test,
# forms = form_focal,
# events = event_focal,
# value_labs = TRUE,
# header_labs = TRUE,
# checkbox_labs = FALSE,
# use_factors = FALSE,
# dag = FALSE
# )
#
# expect_true(all(dict$field_label %in% names(x3)))
# check_var <- "Which serious adverse event occurred? (choice=Participant was hospitalized)"
# expect_true(all(x3[[check_var]] %in% c("Unchecked", "Checked")))


## test argument records
Expand Down

0 comments on commit 0324035

Please sign in to comment.