]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update testing for ignore macOS directory services file 3105/head
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 19 Apr 2023 02:09:24 +0000 (19:09 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Wed, 19 Apr 2023 02:10:03 +0000 (19:10 -0700)
src/documents/tests/test_management_consumer.py

index 150880116d06b6f773a2def522342b0044ed7190..1230288c5de4613d997175db6e8ed930b7b724c3 100644 (file)
@@ -271,25 +271,11 @@ class TestConsumer(DirectoriesMixin, ConsumerThreadMixin, TransactionTestCase):
                 "ignore": False,
             },
             {
-                "path": os.path.join(self.dirs.consumption_dir, ".DS_STORE", "foo.pdf"),
+                "path": os.path.join(self.dirs.consumption_dir, ".DS_STORE"),
                 "ignore": True,
             },
             {
-                "path": os.path.join(
-                    self.dirs.consumption_dir,
-                    "foo",
-                    ".DS_STORE",
-                    "bar.pdf",
-                ),
-                "ignore": True,
-            },
-            {
-                "path": os.path.join(
-                    self.dirs.consumption_dir,
-                    ".DS_STORE",
-                    "foo",
-                    "bar.pdf",
-                ),
+                "path": os.path.join(self.dirs.consumption_dir, ".DS_Store"),
                 "ignore": True,
             },
             {