From 0d73256947c7c79890a5f94622f0948645ea4da7 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 5 Mar 2026 14:32:30 +0100 Subject: Make test robust against unavailable services Test logs are without internet. --- tests/testthat/setup.R | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/testthat/setup.R') 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") -- cgit v1.2.3