Examples of updating the baseline

This commit is contained in:
Trenton H
2026-02-04 12:23:34 -08:00
parent 41e8fb0bbf
commit 92b6ef971e
3 changed files with 2 additions and 12 deletions

View File

@@ -17363,18 +17363,6 @@
"description": "Class member `TikaDocumentParser.get_settings` overrides parent class `DocumentParser` in an inconsistent manner\n `TikaDocumentParser.get_settings` has type `BoundMethod[TikaDocumentParser, (self: TikaDocumentParser) -> OutputTypeConfig]`, which is not assignable to `BoundMethod[TikaDocumentParser, (self: TikaDocumentParser) -> Never]`, the type of `DocumentParser.get_settings`",
"concise_description": "Class member `TikaDocumentParser.get_settings` overrides parent class `DocumentParser` in an inconsistent manner",
"severity": "error"
},
{
"line": 106,
"column": 13,
"stop_line": 107,
"stop_column": 32,
"path": "src/paperless_tika/tests/test_live_tika.py",
"code": -2,
"name": "not-iterable",
"description": "`in` is not supported between `Literal['This is a test document, saved in the older .doc format']` and `None`",
"concise_description": "`in` is not supported between `Literal['This is a test document, saved in the older .doc format']` and `None`",
"severity": "error"
}
]
}

View File

@@ -159,6 +159,7 @@ class TestParserSettingsFromDb(DirectoriesMixin, FileSystemAssertsMixin, TestCas
"""
with override_settings(OCR_ROTATE_PAGES=False, OCR_ROTATE_PAGES_THRESHOLD=30.0):
instance = ApplicationConfiguration.objects.all().first()
assert instance is not None
instance.rotate_pages = True
instance.rotate_pages_threshold = 15.0
instance.save()

View File

@@ -102,6 +102,7 @@ class TestTikaParserAgainstServer:
[sample_doc_file, "application/msword"],
)
assert tika_parser.text is not None
assert (
"This is a test document, saved in the older .doc format"
in tika_parser.text