Skip to content

Commit

Permalink
Use cnd_class = TRUE when snapshot is primary test
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslogan committed Sep 13, 2024
1 parent fd04433 commit 16cf8d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
res <- dumb_ex %>% as_epi_archive()
Condition
Condition <epiprocess__compactify_default_removed_rows>
Warning:
Found rows that appear redundant based on last (version of each) observation carried forward; these rows have been removed to 'compactify' and save space:
Key: <geo_value, time_value, version>
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-archive.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dumb_ex <- data.frame(
version = as.Date(c("2020-01-01", "2020-01-02"))
)
test_that("new_epi_archive correctly detects and warns about compactification", {
expect_snapshot(res <- dumb_ex %>% as_epi_archive())
expect_snapshot(res <- dumb_ex %>% as_epi_archive(), cnd_class = TRUE)
})

test_that("other_keys can only contain names of the data.frame columns", {
Expand Down

0 comments on commit 16cf8d7

Please sign in to comment.