]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Last of the import fixes
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 9 Apr 2025 02:56:04 +0000 (19:56 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Wed, 9 Apr 2025 02:56:04 +0000 (19:56 -0700)
src/paperless/tests/test_api_documents.py

index 0c5165ec9710b863c6d8b825c8e47bd1c8071ebc..619566203af962b6a60e7fa35e8b6e29a93a0416 100644 (file)
@@ -1576,10 +1576,10 @@ class TestDocumentApi(DirectoriesMixin, DocumentConsumeDelayMixin, APITestCase):
         response = self.client.get("/api/documents/34676/suggestions/")
         self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
 
-    @mock.patch("documents.views.match_storage_paths")
-    @mock.patch("documents.views.match_document_types")
-    @mock.patch("documents.views.match_tags")
-    @mock.patch("documents.views.match_correspondents")
+    @mock.patch("paperless.views.match_storage_paths")
+    @mock.patch("paperless.views.match_document_types")
+    @mock.patch("paperless.views.match_tags")
+    @mock.patch("paperless.views.match_correspondents")
     @override_settings(NUMBER_OF_SUGGESTED_DATES=10)
     def test_get_suggestions(
         self,
@@ -1611,11 +1611,11 @@ class TestDocumentApi(DirectoriesMixin, DocumentConsumeDelayMixin, APITestCase):
             },
         )
 
-    @mock.patch("documents.views.load_classifier")
-    @mock.patch("documents.views.match_storage_paths")
-    @mock.patch("documents.views.match_document_types")
-    @mock.patch("documents.views.match_tags")
-    @mock.patch("documents.views.match_correspondents")
+    @mock.patch("paperless.views.load_classifier")
+    @mock.patch("paperless.views.match_storage_paths")
+    @mock.patch("paperless.views.match_document_types")
+    @mock.patch("paperless.views.match_tags")
+    @mock.patch("paperless.views.match_correspondents")
     @override_settings(NUMBER_OF_SUGGESTED_DATES=10)
     def test_get_suggestions_cached(
         self,