summaryrefslogtreecommitdiff
path: root/tests/testthat/test_chent.R
diff options
context:
space:
mode:
authorJohannes Ranke <johannes.ranke@jrwb.de>2026-03-05 16:22:50 +0100
committerJohannes Ranke <johannes.ranke@jrwb.de>2026-03-05 16:22:50 +0100
commit3612fcc80c900d95a539a7fa228eecd4429e7c72 (patch)
treeb3dd6f946bc568558cb904d443312a85f7754521 /tests/testthat/test_chent.R
parent85df76b97bc7c0e15ef95d184327e130d781a1b6 (diff)
Check services directly before use in testsHEADmain
This is to avoid test failures on the MacOS arm64 systems currently occurring on R-Universe
Diffstat (limited to 'tests/testthat/test_chent.R')
-rw-r--r--tests/testthat/test_chent.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testthat/test_chent.R b/tests/testthat/test_chent.R
index 4017042..a008599 100644
--- a/tests/testthat/test_chent.R
+++ b/tests/testthat/test_chent.R
@@ -17,6 +17,10 @@ test_that("We can initialise an object and add information", {
oct$get_rdkit() |>
expect_message("Get chemical information from RDKit using user SMILES")
+ # Check availability of BCPC and PubChem immediately before use
+ bcpc_up <- webchem::ping_service("bcpc")
+ pc_up <- webchem::ping_service("pc")
+
skip_if_not(pc_up)
expect_snapshot(print(oct))
})

Contact - Imprint