Skip to content

Commit

Permalink
clean cache after testthat checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Sep 10, 2023
1 parent 09c49e8 commit 8f648cf
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/testthat/test_read_emigration.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ test_that("read_emigration", {
testthat::expect_error(read_emigration(year=2000, add_labels = 'pt'))

})

# clean cache
censobr_cache(delete_file = 'all')
3 changes: 3 additions & 0 deletions tests/testthat/test_read_families.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ test_that("read_families", {
testthat::expect_error(read_families(year=2010, add_labels = 'pt'))

})

# clean cache
censobr_cache(delete_file = 'all')
3 changes: 3 additions & 0 deletions tests/testthat/test_read_households.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ test_that("read_households", {


})

# clean cache
censobr_cache(delete_file = 'all')
4 changes: 3 additions & 1 deletion tests/testthat/test_read_mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@ test_that("read_mortality", {
# missing labels
testthat::expect_error(read_mortality(year=2000, add_labels = 'pt'))


})

# clean cache
censobr_cache(delete_file = 'all')
3 changes: 3 additions & 0 deletions tests/testthat/test_read_population.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ test_that("read_population", {
testthat::expect_error(read_population(year=2000, add_labels = 'pt'))

})

# clean cache
censobr_cache(delete_file = 'all')
4 changes: 4 additions & 0 deletions tests/testthat/test_z_censobr_cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ test_that("censobr_cache", {
testthat::expect_error(censobr_cache(list_files= 999))
testthat::expect_error(censobr_cache(delete_file = 999))
})


# clean cache
censobr_cache(delete_file = 'all')

0 comments on commit 8f648cf

Please sign in to comment.