skip tavily in Github CI for now
This commit is contained in:
parent
a35bcecdf9
commit
20c9e5498b
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue