Skip to content

Tests: skip network tests when curl is not installed - #2

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix-offline-skip
Dec 2, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
fix-offline-skip

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

The automatic check that runs without optional packages fails on two download tests. They should skip there, and now do.

Affects: tests only; no change to results.

Technical details

tests/testthat/test-prepInputsFireYear.R:2 and test-prepInputsStandAgeMap.R:2 call testthat::skip_if_offline(), which needs curl. forestInputs does not import curl (LandR got it through httr2), so the ubuntu-latest (release, nosuggests) leg of run 46949256341 errored with "The package "curl" is required". Both tests now call skip_if_not_installed("curl") first, and curl is in Suggests so the other legs install it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3

testthat::skip_if_offline() needs curl, which forestInputs does not import
(LandR got it through httr2), so the no-Suggests CI leg errored there.
curl goes in Suggests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXfVqAugcusGHygZGJ3
@eliotmcintire eliotmcintire added the bug Something isn't working label Dec 2, 2026
@eliotmcintire
eliotmcintire merged commit 20daca5 into development Dec 2, 2026
10 checks passed
@eliotmcintire
eliotmcintire deleted the fix-offline-skip branch December 2, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant