mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test(pruna): cover invalid size parsing branch
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
2e20a427c9
commit
cc527fcfc6
1 changed files with 3 additions and 2 deletions
|
|
@ -67,9 +67,10 @@ class TestPrunaImageGenerationTransformation:
|
|||
)
|
||||
assert result == {"aspect_ratio": "16:9", "seed": 7}
|
||||
|
||||
def test_map_openai_params_ignores_invalid_size(self):
|
||||
@pytest.mark.parametrize("size", ["auto", "wide", "bigxsmall", "1024x"])
|
||||
def test_map_openai_params_ignores_invalid_size(self, size):
|
||||
result = self.config.map_openai_params(
|
||||
non_default_params={"size": "auto"},
|
||||
non_default_params={"size": size},
|
||||
optional_params={},
|
||||
model=self.model,
|
||||
drop_params=False,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue