more test stuff

This commit is contained in:
2023-12-08 01:14:01 +01:00
parent 0012c52adf
commit 27c5cd5076
3 changed files with 21 additions and 22 deletions

View File

@@ -3,6 +3,9 @@ import shutil
from pathlib import Path
TEST_FOLDER = ".test_folder"
TEST_IMAGES = "tests/test_files"
TEST_TEMP_FOLDER = os.path.join(TEST_FOLDER, 'Temp')
TEST_IMAGE_FOLDER = os.path.join(TEST_FOLDER, 'Images')
def create_file(file):
@@ -17,3 +20,11 @@ def create_folders():
delete_folder()
os.makedirs(os.path.join(TEST_FOLDER, '001', '001'))
os.makedirs(os.path.join(TEST_FOLDER, '002', '001'))
def copy_test_images():
delete_folder()
os.makedirs(TEST_TEMP_FOLDER)
os.makedirs(TEST_IMAGE_FOLDER)
shutil.copy(src=os.path.join(TEST_IMAGES, 'test_image_001.JPG'), dst=TEST_TEMP_FOLDER)
shutil.copy(src=os.path.join(TEST_IMAGES, 'test_image_002.JPG'), dst=TEST_TEMP_FOLDER)