37 lines
1,020 B
Python
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()
|