mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-27 03:12:45 +00:00
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.