From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 19 Apr 2023 02:09:24 +0000 (-0700) Subject: Update testing for ignore macOS directory services file X-Git-Tag: v1.14.1~1^2~22^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3105%2Fhead;p=thirdparty%2Fpaperless-ngx.git Update testing for ignore macOS directory services file --- diff --git a/src/documents/tests/test_management_consumer.py b/src/documents/tests/test_management_consumer.py index 150880116d..1230288c5d 100644 --- a/src/documents/tests/test_management_consumer.py +++ b/src/documents/tests/test_management_consumer.py @@ -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, }, {