Formatting

This commit is contained in:
Trenton H
2026-03-09 14:25:33 -07:00
parent 8c40491034
commit 404ef6b40d
-29
View File
@@ -24,10 +24,6 @@ from paperless.parsers.registry import get_parser_registry
from paperless.parsers.registry import init_builtin_parsers
from paperless.parsers.registry import reset_parser_registry
# ---------------------------------------------------------------------------
# Shared fixtures
# ---------------------------------------------------------------------------
@pytest.fixture(autouse=True)
def clean_registry() -> None:
@@ -123,11 +119,6 @@ def dummy_parser_cls() -> type:
return DummyParser
# ---------------------------------------------------------------------------
# TestParserProtocol
# ---------------------------------------------------------------------------
class TestParserProtocol:
"""Verify runtime isinstance() checks against ParserProtocol."""
@@ -184,11 +175,6 @@ class TestParserProtocol:
assert not isinstance(partial_cls(), ParserProtocol)
# ---------------------------------------------------------------------------
# TestRegistrySingleton
# ---------------------------------------------------------------------------
class TestRegistrySingleton:
"""Verify the module-level singleton lifecycle functions."""
@@ -260,11 +246,6 @@ class TestRegistrySingleton:
assert reg_module._registry is first_registry
# ---------------------------------------------------------------------------
# TestParserRegistryGetParserForFile
# ---------------------------------------------------------------------------
class TestParserRegistryGetParserForFile:
"""Verify parser selection logic in get_parser_for_file()."""
@@ -485,11 +466,6 @@ class TestParserRegistryGetParserForFile:
assert result is AcceptingBuiltin
# ---------------------------------------------------------------------------
# TestDiscover
# ---------------------------------------------------------------------------
class TestDiscover:
"""Verify entrypoint discovery in ParserRegistry.discover()."""
@@ -665,11 +641,6 @@ class TestDiscover:
assert "loggable_ep" in info_messages
# ---------------------------------------------------------------------------
# TestLogSummary
# ---------------------------------------------------------------------------
class TestLogSummary:
"""Verify log output from ParserRegistry.log_summary()."""