Files
paperless-ngx/src
Trenton H e236b152dc fix: access parser properties on instance not class
requires_pdf_rendition and can_produce_archive are @property decorators
on parser instances. Accessing them on the class returns the property
descriptor object (which is truthy regardless of the intended value),
causing produce_archive to always be set to a non-bool truthy value.

Change both consumer.py and tasks.py to access these attributes on the
instantiated document_parser/parser object. Update TestArchivePreferenceWiring
tests to set the attributes on mock_parser_instance (the context manager
return value) rather than mock_parser_class.
2026-03-26 09:02:57 -07:00
..
2026-03-22 13:55:02 +00:00
2023-04-26 09:35:27 -07:00