diff --git a/core/tests/params.py b/core/tests/params.py new file mode 100644 index 00000000..e49711f6 --- /dev/null +++ b/core/tests/params.py @@ -0,0 +1,34 @@ +import pytest +import json +import yaml + +from lls_core.models.output import SaveFileType + +inputs = pytest.mark.parametrize( + ["path"], [ + ("RBC_tiny.czi", ), + ("RBC_lattice.tif", ), + ("LLS7_t1_ch1.czi", ), + ("LLS7_t1_ch3.czi", ), + ("LLS7_t2_ch1.czi", ), + ("LLS7_t2_ch3.czi", ), + ("multich_multi_time.tif", ), +]) +parameterized = pytest.mark.parametrize("args", [ + {"skew": "X"}, + {"skew": "Y"}, + {"angle": 30}, + {"angle": 90}, + {"physical_pixel_sizes": (1, 1, 1)}, + {"save_type": SaveFileType.h5}, + {"save_type": SaveFileType.tiff}, + + # # Cropping enabled + # {"crop": {"roi_list": []}}core/lls_core/cropping.py, +]) + +# Allows parameterisation over two serialization formats +config_types = pytest.mark.parametrize(["save_func", "cli_param"], [ + (json.dump, "--json-config"), + (yaml.safe_dump, "--yaml-config") +])