filename handling for archive files.

This commit is contained in:
jonaswinkler
2020-11-30 21:38:21 +01:00
parent aaa6599283
commit 8a5c782425
7 changed files with 111 additions and 35 deletions

View File

@@ -321,7 +321,7 @@ class TestDate(TestCase):
Path(os.path.join(tmp, "notempty", "file")).touch()
os.makedirs(os.path.join(tmp, "notempty", "empty"))
delete_empty_directories(os.path.join(tmp, "notempty", "empty"))
delete_empty_directories(os.path.join(tmp, "notempty", "empty"), root=settings.ORIGINALS_DIR)
self.assertEqual(os.path.isdir(os.path.join(tmp, "notempty")), True)
self.assertEqual(os.path.isfile(
os.path.join(tmp, "notempty", "file")), True)