Skip to content

Commit

Permalink
fix axecute unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam-pfizer committed Aug 7, 2023
1 parent e56d7bf commit a6048e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion R/axecute.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ axecute <- function(file, log_name = NA,
show_repo_url = FALSE,
...){
# deprecations
if (!hasArg(remove_log_object)) {
if (hasArg(remove_log_object)) {
lifecycle::deprecate_stop("0.3.0", "axecute(remove_log_object = )", "axecute(include_rds = )")
}

Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-axecute.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ test_that("show_repo_url works to show repo url elements", {

axecute(scriptPath, log_name = "log_out_repo_url",
log_path = logDir,
remove_log_object = FALSE,
show_repo_url = TRUE
)
con <- file(file.path(logDir, "log_out_repo_url"), "r")
Expand All @@ -95,7 +94,6 @@ test_that("show_repo_url works to show repo url elements", {

axecute(scriptPath, log_name = "log_out_repo_url2",
log_path = logDir,
remove_log_object = FALSE,
show_repo_url = FALSE
)
con <- file(file.path(logDir, "log_out_repo_url2"), "r")
Expand Down

0 comments on commit a6048e4

Please sign in to comment.