Skip to content

Commit 7b677e7

Browse files
committed
even more coverage
1 parent e0574a8 commit 7b677e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/testthat/test-automation.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,17 @@ with_mock_crunch({
220220
)
221221
})
222222

223+
test_that("Get message on success when dry_run is TRUE", {
224+
with_POST(
225+
"", # Don't actually need to load anything, just need no POST error
226+
expect_message(
227+
runCrunchAutomation(ds, "# no commands", dry_run = TRUE),
228+
"Script dry run was successful"
229+
)
230+
)
231+
232+
})
233+
223234
test_that("error truncation works", {
224235
expected <- " - (line 1) Error 1\n - (line 2) Error 2\n - ... (Showing first 2 of 3 errors)"
225236
attr(expected, "truncated") <- TRUE

0 commit comments

Comments
 (0)