Skip to content

Commit

Permalink
add unit tests for optional data tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLBaker committed Sep 19, 2024
1 parent a31ac96 commit bf26ef8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/testthat/test-optional_data_checks.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
good_dir <- test_path("good")
bad_dir <- test_path("bad")
bicy_meta <- load_metadata(test_path("good", "BICY_good"))
buis_meta <- load_metadata(test_path("good", "BUIS_good"))

# ---- test_pii_meta_emails

test_that("test_pii_data_emails finds true negatives",
{
msg <- "Data files do not appear to contain any personal emails."
expect_message(test_pii_data_emails(here::here(good_dir,
"BICY_good")),
msg)
}
)

# ----

0 comments on commit bf26ef8

Please sign in to comment.