Update test_api.py

This commit is contained in:
2025-10-21 16:42:12 +02:00
parent ac52d6eec5
commit c04d23ea53

View File

@@ -32,8 +32,8 @@ def test_integration_search_youtube(monkeypatch):
cx = (os.getenv("GOOGLE_CSE_ID") or "").strip() cx = (os.getenv("GOOGLE_CSE_ID") or "").strip()
if not key or not cx: if not key or not cx:
logging.warning("Skipping integration test: missing GOOGLE_DEVELOPER_KEY or GOOGLE_CSE_ID") logging.warning("Skipping test: missing GOOGLE_DEVELOPER_KEY or GOOGLE_CSE_ID")
pytest.skip("Integration test skipped: GOOGLE_DEVELOPER_KEY/GOOGLE_CSE_ID not set") pytest.skip("Test skipped: GOOGLE_DEVELOPER_KEY/GOOGLE_CSE_ID not set")
# Speed up: don't wait during the test # Speed up: don't wait during the test
monkeypatch.setattr(api, "RATE_SECONDS", 0) monkeypatch.setattr(api, "RATE_SECONDS", 0)