ref: Some ruff fixes from preview (#5420)
* Some ruff fixes from preview * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
3454ede5a5
commit
e91bcc2520
79 changed files with 402 additions and 374 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import base64
|
||||
|
||||
import pytest
|
||||
from langchain_core.messages import AIMessage, HumanMessage
|
||||
from langflow.schema.data import Data
|
||||
|
|
@ -9,8 +11,6 @@ def sample_image(tmp_path):
|
|||
"""Create a sample image file for testing."""
|
||||
image_path = tmp_path / "test_image.png"
|
||||
# Create a small black 1x1 pixel PNG file
|
||||
import base64
|
||||
|
||||
image_content = base64.b64decode(
|
||||
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg=="
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import base64
|
||||
import shutil
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
|
@ -29,8 +30,6 @@ def sample_image(langflow_cache_dir):
|
|||
# Create the image in the flow directory
|
||||
image_path = flow_dir / "test_image.png"
|
||||
# Create a small black 1x1 pixel PNG file
|
||||
import base64
|
||||
|
||||
image_content = base64.b64decode(
|
||||
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg=="
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue