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

@@ -1,9 +1,13 @@
from typing import Literal
from pydantic import BaseModel
from omniread.pdf import PDFParser
from omniread.core.content import Content
from omniread import (
# core
Content,
# pdf
PDFParser,
)
class ParsedPDF(BaseModel):
size_bytes: int