Skip to content

Commit c7dd8da

Browse files
committed
fixed
1 parent ac4f865 commit c7dd8da

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

scrapegraph-py/tests/test_real_apis.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,7 @@ def test_crawl_with_all_params_real():
316316
prompt="Extract page titles",
317317
data_schema=data_schema
318318
)
319-
320-
crawl_id = initial_response["task_id"]
321-
322-
# Then get the status
323-
status_response = client.get_crawl(crawl_id)
324-
assert "status" in status_response
325-
assert "crawl_id" in status_response
319+
assert "task_id" in initial_response
326320

327321
"""Test submitting feedback without text"""
328322
if not os.getenv("SGAI_API_KEY"):
@@ -412,18 +406,6 @@ async def test_async_markdownify_basic_real():
412406
# CLIENT INITIALIZATION TESTS
413407
# ============================================================================
414408

415-
def test_client_from_env_real():
416-
"""Test client initialization from environment"""
417-
if not os.getenv("SGAI_API_KEY"):
418-
pytest.skip("SGAI_API_KEY not set")
419-
420-
client = Client.from_env()
421-
assert client.api_key == os.getenv("SGAI_API_KEY")
422-
423-
424-
client = AsyncClient.from_env()
425-
assert client.api_key == os.getenv("SGAI_API_KEY")
426-
427409

428410
def test_client_context_manager_real():
429411
"""Test client context manager"""

0 commit comments

Comments
 (0)