Skip to content

Commit 8ae17c1

Browse files
committed
fixed
1 parent c7dd8da commit 8ae17c1

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

scrapegraph-py/tests/test_real_apis.py

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -251,25 +251,6 @@ def test_get_markdownify_status_real():
251251
assert "request_id" in status_response
252252

253253

254-
def test_crawl_basic_real():
255-
"""Test basic crawl"""
256-
if not os.getenv("SGAI_API_KEY"):
257-
pytest.skip("SGAI_API_KEY not set")
258-
259-
data_schema = {
260-
"type": "object",
261-
"properties": {
262-
"title": {"type": "string"},
263-
"content": {"type": "string"}
264-
}
265-
}
266-
267-
with Client.from_env() as client:
268-
client.crawl(
269-
url="https://example.com",
270-
prompt="Extract page information",
271-
data_schema=data_schema
272-
)
273254

274255

275256

@@ -292,8 +273,8 @@ def test_crawl_with_all_params_real():
292273
prompt="Extract comprehensive page data",
293274
data_schema=data_schema,
294275
cache_website=True,
295-
depth=2,
296-
max_pages=3,
276+
depth=1,
277+
max_pages=1,
297278
same_domain_only=True,
298279
batch_size=5
299280
)

0 commit comments

Comments
 (0)