mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-13 06:00:58 +00:00
style: fix unused imports after ruff auto-fix
Remove unused imports in test files: - test_config_loader.py: remove unused os - test_taskmgr.py: remove unused Mock - test_preproc.py: remove unused unsupported_query, image_chain Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,6 @@ Tests cover:
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from langbot.pkg.config.impls.yaml import YAMLConfigFile
|
from langbot.pkg.config.impls.yaml import YAMLConfigFile
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ from __future__ import annotations
|
|||||||
import pytest
|
import pytest
|
||||||
import asyncio
|
import asyncio
|
||||||
import sys
|
import sys
|
||||||
from unittest.mock import MagicMock, Mock
|
from unittest.mock import MagicMock
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ from tests.factories import (
|
|||||||
text_query,
|
text_query,
|
||||||
empty_query,
|
empty_query,
|
||||||
image_query,
|
image_query,
|
||||||
unsupported_query,
|
|
||||||
group_text_query,
|
group_text_query,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -198,7 +197,6 @@ class TestPreProcessorImageSegment:
|
|||||||
# Image query with base64
|
# Image query with base64
|
||||||
query = image_query(text="look at this", url=None)
|
query = image_query(text="look at this", url=None)
|
||||||
# Set base64 on the image component
|
# Set base64 on the image component
|
||||||
from tests.factories.message import image_chain
|
|
||||||
import langbot_plugin.api.entities.builtin.platform.message as platform_message
|
import langbot_plugin.api.entities.builtin.platform.message as platform_message
|
||||||
chain = platform_message.MessageChain([
|
chain = platform_message.MessageChain([
|
||||||
platform_message.Plain(text="look at this"),
|
platform_message.Plain(text="look at this"),
|
||||||
|
|||||||
Reference in New Issue
Block a user