mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-11 08:09:44 +00:00
Formatting
This commit is contained in:
@@ -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()."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user