skyeweave/tests/test_01_class.py
Firq 56c1d5427a
All checks were successful
/ mypy (push) Successful in 15s
/ tests (push) Successful in 52s
/ pylint (push) Successful in 10s
Added testing
2024-10-20 21:38:22 +02:00

37 lines
1,020 B
Python

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()