Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Update testing for ignore macOS directory services file

shamoond1984c0ddada
diff --git a/src/documents/tests/test_management_consumer.py b/src/documents/tests/test_management_consumer.py
index 150880116..1230288c5 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,
},
{