Skip to content

Commit 0b79316

Browse files
yizzyyizzy
authored andcommitted
test: update test to use _convert_uploadfile_to_bytes after refactoring
The test was calling _normalize_field_value expecting UploadFile→bytes conversion, but we moved that logic to _convert_uploadfile_to_bytes as part of the separation of concerns refactoring.
1 parent e6ff1d7 commit 0b79316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/functional/event_handler/_pydantic/test_openapi_validation_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,7 @@ class DummyFieldInfo:
27482748
annotation = Annotated[bytes, "meta"]
27492749

27502750
ov = __import__("aws_lambda_powertools.event_handler.middlewares.openapi_validation", fromlist=["*"])
2751-
result = ov._normalize_field_value(upload, DummyFieldInfo())
2751+
result = ov._convert_uploadfile_to_bytes(upload, DummyFieldInfo())
27522752
assert result == file_content
27532753

27542754

0 commit comments

Comments
 (0)