From 07f52d12b2677738dbd576efe35c6a59a1f06a4c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 31 Mar 2026 13:52:45 +0000 Subject: [PATCH] fix: guard requests import so CI collection doesn't fail requests is only installed in the nightly integration workflow, not in the regular CI dev dependencies. Use pytest.importorskip so the module is skipped cleanly instead of crashing collection. https://claude.ai/code/session_01YEun5gKT59qD5yUqasCaar --- tests/integration/test_live_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_live_server.py b/tests/integration/test_live_server.py index 6a5db8e..8ac3777 100644 --- a/tests/integration/test_live_server.py +++ b/tests/integration/test_live_server.py @@ -11,7 +11,8 @@ from uuid import uuid4 import pytest -import requests + +requests = pytest.importorskip("requests") pytestmark = pytest.mark.skipif( not os.environ.get("CYCLES_BASE_URL"),