start making tests
This commit is contained in:
0
tests/helpers/__init__.py
Normal file
0
tests/helpers/__init__.py
Normal file
19
tests/helpers/folder_helper.py
Normal file
19
tests/helpers/folder_helper.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
TEST_FOLDER = ".test_folder"
|
||||
|
||||
|
||||
def create_file(file):
|
||||
Path(os.path.join(TEST_FOLDER, file)).touch()
|
||||
|
||||
|
||||
def delete_folder():
|
||||
shutil.rmtree(TEST_FOLDER, ignore_errors=True)
|
||||
|
||||
|
||||
def create_folders():
|
||||
delete_folder()
|
||||
os.makedirs(os.path.join(TEST_FOLDER, '001', '001'))
|
||||
os.makedirs(os.path.join(TEST_FOLDER, '002', '001'))
|
||||
Reference in New Issue
Block a user