mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
test: move bedrock nova reel/canvas tests into tests/unit/llms
Upstream moved tests/test_litellm/llms to tests/unit/llms (#43191) and assert-ci-coverage now fails for test files left under the old tree. Relocate the branch test files to the canonical location (pure moves; the conditioned-edit mirror gets its own file name beside the existing unit file) so every file stays invoked by a CI job.
This commit is contained in:
parent
3b81cab5b5
commit
a55da63024
4 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
"""CI-covered tests for the Nova Canvas conditioned-editing additions (issue #39552).
|
||||
"""Tests for the Nova Canvas conditioned-editing additions (issue #39552).
|
||||
|
||||
Self-contained mirror of the branch-added tests in
|
||||
Self-contained complement to the branch-added tests in
|
||||
tests/unit/llms/bedrock/image_edit/test_amazon_nova_canvas_image_edit.py: the
|
||||
conditioning guard, conditionImage acceptance/precedence, controlStrength
|
||||
coercion/range, mask/maskPrompt rejection, prompt-required, style forwarding,
|
||||
|
|
@ -693,9 +693,10 @@ def test_aimage_edit_positional_arguments_still_work(monkeypatch):
|
|||
|
||||
def test_aimage_edit_none_image_builds_empty_list(monkeypatch):
|
||||
"""An omitted image must arrive at the handler as [] (empty list), not [None]."""
|
||||
import litellm.images.main as images_main
|
||||
from unittest.mock import Mock
|
||||
|
||||
import litellm.images.main as images_main
|
||||
|
||||
seen: dict[str, object] = {}
|
||||
|
||||
def fake_image_edit(**kwargs):
|
||||
|
|
@ -751,8 +752,8 @@ def test_redact_bedrock_headers_for_logging_masks_signed_headers():
|
|||
def test_prepare_request_logging_headers_redacted(monkeypatch):
|
||||
"""pre_call additional_args must carry the redacted copy; the sent request keeps
|
||||
the real bearer Authorization header."""
|
||||
from litellm.llms.bedrock.image_edit.handler import BedrockImageEdit
|
||||
from litellm.litellm_core_utils.litellm_logging import Logging
|
||||
from litellm.llms.bedrock.image_edit.handler import BedrockImageEdit
|
||||
|
||||
monkeypatch.setenv("AWS_BEARER_TOKEN_BEDROCK", "env-bearer-token-12345")
|
||||
|
||||
Loading…
Add table
Reference in a new issue