fix: use list instead of tuple in extra_params for YAML safety
PyYAML serializes tuples as !!python/tuple tags which safe_load rejects, corrupting the state file.
This commit is contained in:
parent
d90db2933e
commit
47b5f899e6
2 changed files with 3 additions and 3 deletions
|
|
@ -152,7 +152,7 @@ class TestCollectHelpers:
|
|||
params = _collect_extra_params("out.png", config)
|
||||
assert params["width"] == 512
|
||||
assert params["height"] == 256
|
||||
assert params["reference_images"] == ("ref.png",)
|
||||
assert params["reference_images"] == ["ref.png"]
|
||||
|
||||
def test_collect_extra_params_empty(self, write_config: WriteConfig) -> None:
|
||||
config = write_config({"targets": {"out.txt": {"prompt": "x"}}})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue