skip tavily in Github CI for now

This commit is contained in:
Daulet Amirkhanov 2025-10-21 23:27:18 +01:00
parent a35bcecdf9
commit 20c9e5498b

View file

@ -1,12 +1,19 @@
import os
import pytest
from cognee.tasks.web_scraper.utils import fetch_with_tavily
skip_in_ci = pytest.mark.skipif(
os.getenv("GITHUB_ACTIONS") == "true",
reason="Skipping in Github for now - before we get TAVILY_API_KEY",
)
@skip_in_ci
@pytest.mark.asyncio
async def test_fetch():
url = "https://en.wikipedia.org/wiki/Large_language_model"
results = await fetch_with_tavily(url)
assert len(results) == 1
assert isinstance(results, dict)
assert len(results) == 1
html = results[url]
assert isinstance(html, str)