File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments