From 0ac93e88918df68f1ee62cfa7d272ac38a160318 Mon Sep 17 00:00:00 2001 From: Wolf-Bastian Poettner Date: Mon, 17 Feb 2020 19:49:47 +0000 Subject: [PATCH] Ensure documents directory still exists after nested deletion --- src/documents/tests/test_file_handling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/documents/tests/test_file_handling.py b/src/documents/tests/test_file_handling.py index 912d02573..c4d5f7f32 100644 --- a/src/documents/tests/test_file_handling.py +++ b/src/documents/tests/test_file_handling.py @@ -264,6 +264,8 @@ class TestDate(TestCase): "/documents/originals/none/none"), False) self.assertEqual(os.path.isdir(settings.MEDIA_ROOT + "/documents/originals/none"), False) + self.assertEqual(os.path.isdir(settings.MEDIA_ROOT + + "/documents/originals"), False) @override_settings(MEDIA_ROOT="/tmp/paperless-tests-{}". format(str(uuid4())[:8]))