summaryrefslogtreecommitdiff
path: root/tests/testthat/setup.R
diff options
context:
space:
mode:
authorJohannes Ranke <johannes.ranke@jrwb.de>2026-03-05 14:32:30 +0100
committerJohannes Ranke <johannes.ranke@jrwb.de>2026-03-05 14:32:30 +0100
commit0d73256947c7c79890a5f94622f0948645ea4da7 (patch)
tree73469afee00da18d2e3ece1368c355afbb8817ff /tests/testthat/setup.R
parentd6c7e8f5a0d0d4b564addf5b447bed6b3ba03b5e (diff)
Make test robust against unavailable services
Test logs are without internet.
Diffstat (limited to 'tests/testthat/setup.R')
-rw-r--r--tests/testthat/setup.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R
index fb55272..4232120 100644
--- a/tests/testthat/setup.R
+++ b/tests/testthat/setup.R
@@ -2,3 +2,7 @@
skip_if_no_rdkit <- function() {
if (!chents:::rdkit_available) skip("RDKit is not available via reticulate")
}
+
+# Check availability of BCPC and PubChem
+bcpc_up <- webchem::ping_service("bcpc")
+pc_up <- webchem::ping_service("pc")

Contact - Imprint