Skip to content

Commit 1b2f58e

Browse files
refactor(test_transform): optimize base64 encoding
1 parent ffe2774 commit 1b2f58e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_transform.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,7 @@ async def test_base64_file_input(use_async: bool) -> None:
398398

399399
# pathlib.Path is automatically converted to base64
400400
result = await transform({"foo": SAMPLE_FILE_PATH}, TypedDictBase64Input, use_async)
401-
assert result["foo"] in [
402-
"SGVsbG8sIHdvcmxkIVxuCg",
403-
"SGVsbG8sIHdvcmxkIVxuDQo="
404-
]
401+
assert result["foo"] in ["SGVsbG8sIHdvcmxkIVxuCg", "SGVsbG8sIHdvcmxkIVxuDQo="] # type: ignore[comparison-overlap]
405402

406403
# io instances are automatically converted to base64
407404
assert await transform({"foo": io.StringIO("Hello, world!")}, TypedDictBase64Input, use_async) == {

0 commit comments

Comments
 (0)