Skip to content

Commit

Permalink
fix dplyr namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisholbrook committed Aug 30, 2024
1 parent 11f551d commit a859b88
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions tests/testthat/test-glatos_animals.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,11 @@ test_that("validate_glatos_animals catches bad inputs", {
fixed = TRUE
)

# # glatos_check_col_names
# expect_error(
# glatos_check_col_names(
# dplyr::rename(x,
# fish_name = animal_id,
# release_timestamp = utc_release_date_time
# ),
# req_cols
# ),
# regexp = "Required column(s) missing from input x",
# fixed = TRUE
# )


# data.frame input; wrong column class
expect_error(
as_glatos_animals(
plyr::mutate(x,
dplyr::mutate(x,
animal_id = as.integer(animal_id),
utc_release_date_time = as.character(utc_release_date_time)
)
Expand All @@ -148,20 +135,7 @@ test_that("validate_glatos_animals catches bad inputs", {
fixed = TRUE
)

# # glatos_check_col_names
# expect_error(
# glatos_check_col_classes(
# plyr::mutate(x,
# animal_id = as.integer(animal_id),
# utc_release_date_time = as.character(utc_release_date_time)
# ),
# req_cols
# ),
# regexp = "The following column(s) have wrong class",
# fixed = TRUE
# )



# non-data.frame input
expect_error(
as_glatos_animals(
Expand Down

0 comments on commit a859b88

Please sign in to comment.