Added testing
This commit is contained in:
parent
821251b77c
commit
56c1d5427a
8 changed files with 151 additions and 8 deletions
tests
36
tests/test_01_class.py
Normal file
36
tests/test_01_class.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue