From 92b6ef971e5abd4c8e4d7e7266c7bee7c9db2cab Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Wed, 4 Feb 2026 12:23:34 -0800 Subject: [PATCH] Examples of updating the baseline --- .pyrefly-baseline.json | 12 ------------ .../tests/test_parser_custom_settings.py | 1 + src/paperless_tika/tests/test_live_tika.py | 1 + 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.pyrefly-baseline.json b/.pyrefly-baseline.json index a1c371122..da084db22 100644 --- a/.pyrefly-baseline.json +++ b/.pyrefly-baseline.json @@ -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" } ] } diff --git a/src/paperless_tesseract/tests/test_parser_custom_settings.py b/src/paperless_tesseract/tests/test_parser_custom_settings.py index da2912a8b..a4db8a2aa 100644 --- a/src/paperless_tesseract/tests/test_parser_custom_settings.py +++ b/src/paperless_tesseract/tests/test_parser_custom_settings.py @@ -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() diff --git a/src/paperless_tika/tests/test_live_tika.py b/src/paperless_tika/tests/test_live_tika.py index 05315cf24..8275708b4 100644 --- a/src/paperless_tika/tests/test_live_tika.py +++ b/src/paperless_tika/tests/test_live_tika.py @@ -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