Skip to content

Commit

Permalink
remove comments on Brazilian atlas that were due to server-side problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwestgate committed Nov 20, 2023
1 parent 70793fb commit 1936ad8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/testthat/test-international-Brazil.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ test_that("search_all(fields) works for Brazil", {
expect_true(inherits(x, c("tbl_df", "tbl", "data.frame")))
})

## FIXME: Brazilian taxonomic search seems to be a bit inconsistent
test_that("search_all(taxa) works for Brazil", {
skip_if_offline()
x <- search_all(taxa, "Mammalia")
# Just a side note:
# Searching on the Brazilian atlas is pretty unpredictable.
# e.g. "Animalia" & "Mammalia" do not return results in search
# "Fungi" returns a Candelaria species, rather than the kingdom
expect_gte(nrow(x), 1)
expect_true(inherits(x, c("tbl_df", "tbl", "data.frame")))
})
Expand All @@ -95,15 +90,14 @@ test_that("atlas_counts works for Brazil", {
expect_gt(atlas_counts(type = "species")$count, 0)
})

## FIXME: Caused by taxonomic search issue
test_that("atlas_counts works with galah_identify for Brazil", {
skip_if_offline()
result <- galah_call() |>
galah_identify("Mammalia") |> # Works when run_checks = TRUE
atlas_counts()
expect_gt(result$count, 1)
result2 <- galah_call() |>
galah_filter(class == "Mammalia") |> ## FIXME: This functionality doesn't work
galah_filter(class == "Mammalia") |>
atlas_counts()
expect_lt(
sqrt((result2$count - result$count)^2) / result$count,
Expand Down

0 comments on commit 1936ad8

Please sign in to comment.