standardize packaging, tooling, docs, CI, and licensing
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
import json
|
||||
import pytest
|
||||
import httpx
|
||||
from pathlib import Path
|
||||
from jinja2 import Environment, BaseLoader
|
||||
|
||||
import httpx
|
||||
import pytest
|
||||
from jinja2 import BaseLoader, Environment
|
||||
|
||||
from omniread import (
|
||||
# core
|
||||
ContentType,
|
||||
|
||||
# html
|
||||
HTMLScraper,
|
||||
|
||||
# pdf
|
||||
FileSystemPDFClient,
|
||||
# html
|
||||
HTMLScraper,
|
||||
PDFScraper,
|
||||
)
|
||||
|
||||
|
||||
MOCK_HTML_DIR = Path(__file__).parent / "mocks" / "html"
|
||||
MOCK_PDF_DIR = Path(__file__).parent / "mocks" / "pdf"
|
||||
|
||||
@@ -40,7 +38,7 @@ def mock_transport(request: httpx.Request) -> httpx.Response:
|
||||
httpx MockTransport handler.
|
||||
"""
|
||||
path = request.url.path
|
||||
if path not in ['/simple', '/table']:
|
||||
if path not in ["/simple", "/table"]:
|
||||
return httpx.Response(
|
||||
status_code=404,
|
||||
content=b"Not Found",
|
||||
|
||||
Reference in New Issue
Block a user