Skip to content

Commit

Permalink
Update tests/testthat/test-utils_get_data.R
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Malfait <[email protected]>
  • Loading branch information
BaptisteBR and milanmlft authored Sep 6, 2024
1 parent a2ba33d commit 3ee7c2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-utils_get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ test_that("Test data parquet files exist and are accessible", {
# 1 < LOW_FREQUENCY_THRESHOLD < 1000
# 1 < LOW_FREQUENCY_REPLACEMENT < 1000
test_that("Test low frequency stats replacement for monthly counts", {
withr::local_envvar(
"LOW_FREQUENCY_THRESHOLD" = 10,
"LOW_FREQUENCY_REPLACEMENT" = 2.5
)
mock_monthly_counts <- data.frame(
concept_id = c(1, 2, 3, 4, 5, 6, 7),
person_count = c(0, 0, 1000, 1000, 1, 1000, 1),
Expand Down

0 comments on commit 3ee7c2a

Please sign in to comment.