Ensure, that document root is not deleted

This commit is contained in:
Wolf-Bastian Poettner
2020-03-28 20:57:57 +00:00
parent 36af8c4050
commit 4a98808858
2 changed files with 6 additions and 2 deletions

View File

@@ -319,7 +319,7 @@ class TestDate(TestCase):
self.assertEqual(os.path.isdir(settings.MEDIA_ROOT +
"/documents/originals/none"), False)
self.assertEqual(os.path.isdir(settings.MEDIA_ROOT +
"/documents/originals"), False)
"/documents/originals"), True)
@override_settings(MEDIA_ROOT="/tmp/paperless-tests-{}".
format(str(uuid4())[:8]))