Skip to content

Commit

Permalink
revert test to original version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbennettufl committed Aug 26, 2024
1 parent 72321e8 commit 83a9ba1
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
library(testthat)
library(ridigbio)

verify_galax_records <- NULL

# Test that examples will run
tryCatch(
{
# Your code that might throw an error
verify_galax_records <- idig_search_records(
rq = list(scientificname = "Galax urceolata"),
limit = 10
)
},
error = function(e) {
# Code to run if an error occurs
cat("An error occurred during the idig_search_records call: ", e$message, "\n")
simpleError("Tests will not proceed as a result of error. Please try to fix the issue and try again.")
# Optionally, you can return NULL or an empty dataframe
verify_galax_records <- NULL
}
)

if (!is.null(verify_galax_records) && nrow(verify_galax_records) > 0) {
test_check("ridigbio")
}
test_check("ridigbio")

0 comments on commit 83a9ba1

Please sign in to comment.