@@ -31,6 +31,8 @@ tar_test("gcp_file format file gets stored", {
31
31
expr <- tar_tidy_eval(expr , environment(), TRUE )
32
32
eval(as.call(list (`tar_script` , expr , ask = FALSE )))
33
33
tar_make(callr_function = NULL , envir = tar_option_get(" envir" ))
34
+ unlink(" example_gcp_file.txt" )
35
+ unlink(" example_gcp_file.txt" )
34
36
expect_true(
35
37
gcp_gcs_exists(
36
38
bucket = bucket_name ,
@@ -97,9 +99,11 @@ tar_test("gcp_file format invalidation", {
97
99
expr <- tar_tidy_eval(expr , environment(), TRUE )
98
100
eval(as.call(list (`tar_script` , expr , ask = FALSE )))
99
101
tar_make(callr_function = NULL , envir = tar_option_get(" envir" ))
102
+ unlink(" example_gcp_file.txt" )
100
103
expect_equal(tar_progress(x )$ progress , " completed" )
101
104
expect_equal(tar_progress(y )$ progress , " completed" )
102
105
tar_make(callr_function = NULL )
106
+ unlink(" example_gcp_file.txt" )
103
107
progress <- tar_progress()
104
108
progress <- progress [progress $ progress != " skipped" , ]
105
109
expect_equal(nrow(progress ), 0L )
@@ -129,6 +133,7 @@ tar_test("gcp_file format invalidation", {
129
133
expr <- tar_tidy_eval(expr , environment(), TRUE )
130
134
eval(as.call(list (`tar_script` , expr , ask = FALSE )))
131
135
tar_make(callr_function = NULL , envir = tar_option_get(" envir" ))
136
+ unlink(" example_gcp_file.txt" )
132
137
expect_equal(tar_progress(x )$ progress , " completed" )
133
138
expect_equal(tar_progress(y )$ progress , " completed" )
134
139
expect_equal(tar_read(y ), " x_lines2" )
@@ -169,6 +174,7 @@ tar_test("gcp_file format with a custom data store", {
169
174
expr <- tar_tidy_eval(expr , environment(), TRUE )
170
175
eval(as.call(list (`tar_script` , expr , ask = FALSE )))
171
176
tar_make(callr_function = NULL , envir = tar_option_get(" envir" ))
177
+ unlink(" example_gcp_file.txt" )
172
178
expect_true(file.exists(" custom_targets_store" ))
173
179
expect_false(file.exists(path_store_default()))
174
180
expect_true(
0 commit comments