Fixes the fix commenting
This commit is contained in:
parent
2153e76961
commit
fadc3d6e21
@ -502,12 +502,14 @@ class TestExportImport(DirectoriesMixin, FileSystemAssertsMixin, TestCase):
|
|||||||
GIVEN:
|
GIVEN:
|
||||||
- Request to export documents to zipfile
|
- Request to export documents to zipfile
|
||||||
- There is one existing file in the target
|
- There is one existing file in the target
|
||||||
|
- There is one existing directory in the target
|
||||||
WHEN:
|
WHEN:
|
||||||
- Documents are exported
|
- Documents are exported
|
||||||
- deletion of existing files is requested
|
- deletion of existing files is requested
|
||||||
THEN:
|
THEN:
|
||||||
- Zipfile is created
|
- Zipfile is created
|
||||||
- Zipfile contains exported files
|
- Zipfile contains exported files
|
||||||
|
- The existing file and directory in target are removed
|
||||||
"""
|
"""
|
||||||
shutil.rmtree(os.path.join(self.dirs.media_dir, "documents"))
|
shutil.rmtree(os.path.join(self.dirs.media_dir, "documents"))
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user