Skip to content

fix: tests to run under pytest #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
tests/async/output/

# Translations
*.mo
Expand Down Expand Up @@ -257,4 +258,7 @@ continue_config.json
.private/

CLAUDE_MONITOR.md
CLAUDE.md
CLAUDE.md

# Test output
logs/
4 changes: 4 additions & 0 deletions crawl4ai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# __init__.py
import warnings
from logging import Logger

from .async_webcrawler import AsyncWebCrawler, CacheMode
from .async_configs import BrowserConfig, CrawlerRunConfig, HTTPCrawlerConfig, LLMConfig
Expand Down Expand Up @@ -64,6 +65,7 @@
DFSDeepCrawlStrategy,
DeepCrawlDecorator,
)
from .deep_crawling.scorers import ScoringStats

__all__ = [
"AsyncLoggerBase",
Expand Down Expand Up @@ -121,6 +123,8 @@
"Crawl4aiDockerClient",
"ProxyRotationStrategy",
"RoundRobinProxyStrategy",
"ScoringStats",
"Logger", # Required for serialization
]


Expand Down
Loading