refactor(tests): use omniread public API instead of internal module imports

- Replace deep imports with top-level omniread exports in tests
- Ensure tests validate only the supported public API surface
- Align HTML and PDF tests with documented library usage
This commit is contained in:
2026-01-02 19:02:20 +05:30
parent de67c7b0b1
commit b2173f3ef0
4 changed files with 31 additions and 10 deletions

View File

@@ -4,10 +4,17 @@ import httpx
from pathlib import Path
from jinja2 import Environment, BaseLoader
from omniread.core.content import ContentType
from omniread.html.scraper import HTMLScraper
from omniread.pdf.client import FileSystemPDFClient
from omniread.pdf.scraper import PDFScraper
from omniread import (
# core
ContentType,
# html
HTMLScraper,
# pdf
FileSystemPDFClient,
PDFScraper,
)
MOCK_HTML_DIR = Path(__file__).parent / "mocks" / "html"