@@ -61,9 +61,6 @@ test_that("upgrade_data() works on single files", {
6161 )
6262})
6363
64- file.remove(
65- list.files(root , recursive = TRUE , full.names = TRUE )
66- )
6764root <- tempfile(" git2rdata-upgrade" )
6865dir.create(root )
6966origin <- system.file(" testthat" , package = " git2rdata" )
@@ -90,9 +87,7 @@ dir.create(root)
9087origin <- system.file(" testthat" , package = " git2rdata" )
9188file.copy(origin , root , recursive = TRUE )
9289path <- file.path(root , " testthat" )
93- file.remove(
94- list.files(path , pattern = " 0_0_4" , full.names = TRUE )
95- )
90+ file.remove(list.files(path , pattern = " 0_0_4" , full.names = TRUE ))
9691repo <- git2r :: init(root )
9792git2r :: config(
repo ,
user.name = " Alice" ,
user.email = " [email protected] " )
9893git2r :: add(repo , list.files(root , recursive = TRUE ))
@@ -118,11 +113,6 @@ test_that("upgrade_data() works on a git repository", {
118113 c(staged = 3L , unstaged = 0L , untracked = 0L )
119114 )
120115})
121- file.remove(
122- list.files(
123- git2r :: workdir(repo ), recursive = TRUE , full.names = TRUE , all.files = TRUE
124- )
125- )
126116
127117test_that(" validation" , {
128118 root <- tempfile(" git2rdata-upgrade" )
@@ -141,5 +131,4 @@ test_that("validation", {
141131 upgrade_data(file = " verbose_0_0_4" , root = path ),
142132 " is not a git2rdata object"
143133 )
144- file.remove(list.files(path , full.names = TRUE ))
145134})
0 commit comments