docs(tests): clarify server URL comments in deep crawl tests

Improve documentation of test configuration URLs by adding clearer
comments explaining when to use each URL configuration - Docker vs
development mode.

No functional changes, only comment improvements.
This commit is contained in:
UncleCode 2025-04-15 22:32:27 +08:00
parent 5206c6f2d6
commit 94d486579c

View File

@ -12,8 +12,8 @@ from dotenv import load_dotenv
load_dotenv() # Load environment variables from .env file if present load_dotenv() # Load environment variables from .env file if present
# --- Test Configuration --- # --- Test Configuration ---
BASE_URL = os.getenv("CRAWL4AI_TEST_URL", "http://localhost:11235") # Ensure this points to your running server BASE_URL = os.getenv("CRAWL4AI_TEST_URL", "http://localhost:11235") # If server is running in Docker, use the host's IP
BASE_URL = os.getenv("CRAWL4AI_TEST_URL", "http://localhost:8020") # Ensure this points to your running server BASE_URL = os.getenv("CRAWL4AI_TEST_URL", "http://localhost:8020") # If server is running in dev debug mode
DEEP_CRAWL_BASE_URL = "https://docs.crawl4ai.com/samples/deepcrawl/" DEEP_CRAWL_BASE_URL = "https://docs.crawl4ai.com/samples/deepcrawl/"
DEEP_CRAWL_DOMAIN = "docs.crawl4ai.com" # Used for domain filter DEEP_CRAWL_DOMAIN = "docs.crawl4ai.com" # Used for domain filter