-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests: clean up, simplify tests #716
Conversation
@@ -206,7 +206,7 @@ update_cran_comments <- function() { | |||
} | |||
|
|||
get_crp_date <- function() { | |||
cmt <- gh::gh("/repos/eddelbuettel/crp/commits")[[1]] | |||
cmt <- gh("/repos/eddelbuettel/crp/commits")[[1]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is for being able to mock it while respecting the guidance in https://testthat.r-lib.org/reference/local_mocked_bindings.html#namespaced-calls
@@ -360,10 +360,10 @@ has_internet <- function() { | |||
if (!rlang::is_installed("curl")) { | |||
return(FALSE) | |||
} | |||
if (nzchar(Sys.getenv("YES_INTERNET_TEST_FLEDGE"))) { | |||
if (nzchar(Sys.getenv("FLEDGE_YES_INTERNET_TEST"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were the only test switches not starting with FLEDGE_
😬
@@ -1,92 +1,94 @@ | |||
test_that("bump_version() works -- dev", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the diff here: removing the skips as I don't think we need them anymore, same for the variant, and restructuring the test files into paragraphs.
Fix #695
Part of #714
expect_snapshot_error(
;FLEDGE_
;