Added testing

This commit is contained in:
Firq 2024-10-20 21:38:22 +02:00
parent 821251b77c
commit 56c1d5427a
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
8 changed files with 151 additions and 8 deletions

36
tests/test_01_class.py Normal file
View file

@ -0,0 +1,36 @@
from pathlib import Path
from skyeweave import SkyeWeave
def test_servantid_create(path_images: Path, path_output: Path):
test_id = 70
test_weaver = SkyeWeave(
test_id,
output=path_output,
assets=path_images
)
assert test_weaver.output_folder == path_output / str(test_id)
assert path_output.exists()
assert (path_output / str(test_id)).exists()
assert test_weaver.image_folder == path_images / str(test_id)
assert path_images.exists()
assert (path_images / str(test_id)).exists()
def test_charaid_create(path_images: Path, path_output: Path):
test_id = 3013002
test_weaver = SkyeWeave(
test_id,
output=path_output,
assets=path_images
)
assert test_weaver.output_folder == path_output / "manual"
assert path_output.exists()
assert (path_output / "manual").exists()
assert test_weaver.image_folder == path_images / "manual"
assert path_images.exists()
assert (path_images / "manual").exists()