mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
Adds multiprocessing to the fuzzy matching for a speedup
This commit is contained in:
@@ -13,6 +13,7 @@ class TestFuzzyMatchCommand(TestCase):
|
||||
stderr = StringIO()
|
||||
call_command(
|
||||
"document_fuzzy_match",
|
||||
"--no-progress-bar",
|
||||
*args,
|
||||
stdout=stdout,
|
||||
stderr=stderr,
|
||||
@@ -63,7 +64,7 @@ class TestFuzzyMatchCommand(TestCase):
|
||||
mime_type="application/pdf",
|
||||
filename="other_test.pdf",
|
||||
)
|
||||
stdout, _ = self.call_command()
|
||||
stdout, _ = self.call_command("--processes", "1")
|
||||
self.assertEqual(stdout, "Document 1 fuzzy match to 2 (confidence 86.667)\n")
|
||||
|
||||
def test_with_3_matches(self):
|
||||
|
Reference in New Issue
Block a user