mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
centralized classifier loading, better error handling, no error messages when auto matching is not used
This commit is contained in:
parent
a40e4fe3bc
commit
87a18eae2d
8 changed files with 131 additions and 43 deletions
|
|
@ -420,7 +420,7 @@ class TestConsumer(DirectoriesMixin, TestCase):
|
|||
self.assertIsNotNone(os.path.isfile(document.title))
|
||||
self.assertTrue(os.path.isfile(document.source_path))
|
||||
|
||||
@mock.patch("documents.consumer.DocumentClassifier")
|
||||
@mock.patch("documents.consumer.load_classifier")
|
||||
def testClassifyDocument(self, m):
|
||||
correspondent = Correspondent.objects.create(name="test")
|
||||
dtype = DocumentType.objects.create(name="test")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue