Skip to content

Commit

Permalink
Skip binding tests on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Aug 30, 2023
1 parent 928ba4c commit 5a4c86e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs-conditional.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ library(dplyr, warn.conflicts = FALSE)
suppressPackageStartupMessages(library(bit64))

skip_if_not_available("acero")
skip_on_cran()

tbl <- example_data
tbl$verses <- verses[[1]]
Expand Down
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs-datetime.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ library(lubridate, warn.conflicts = FALSE)
library(dplyr, warn.conflicts = FALSE)

skip_if_not_available("acero")
skip_on_cran()

# base::strptime() defaults to local timezone
# but arrow's strptime defaults to UTC.
Expand Down
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs-math.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
library(dplyr, warn.conflicts = FALSE)

skip_if_not_available("acero")
skip_on_cran()

test_that("abs()", {
df <- tibble(x = c(-127, -10, -1, -0, 0, 1, 10, 127, NA))
Expand Down
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs-string.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

skip_if_not_available("utf8proc")
skip_if_not_available("acero")
skip_on_cran()

library(dplyr, warn.conflicts = FALSE)
library(lubridate)
Expand Down
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ suppressPackageStartupMessages(library(bit64))
suppressPackageStartupMessages(library(lubridate))

skip_if_not_available("acero")
skip_on_cran()

tbl <- example_data

Expand Down
1 change: 1 addition & 0 deletions r/tests/testthat/test-dplyr-funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
skip_on_cran()

test_that("register_binding()/unregister_binding() works", {
fake_registry <- new.env(parent = emptyenv())
Expand Down

0 comments on commit 5a4c86e

Please sign in to comment.