mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-06-26 22:00:13 +00:00
chore: cleaning up unused imports in tests (#8887)
This commit is contained in:
parent
44fb20c2d5
commit
7d51793727
@ -5,7 +5,7 @@ import pytest
|
||||
from haystack.components.builders.chat_prompt_builder import ChatPromptBuilder
|
||||
from haystack import component
|
||||
from haystack.core.pipeline.pipeline import Pipeline
|
||||
from haystack.dataclasses.chat_message import ChatMessage, ChatRole
|
||||
from haystack.dataclasses.chat_message import ChatMessage
|
||||
from haystack.dataclasses.document import Document
|
||||
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
import logging
|
||||
from unittest.mock import patch
|
||||
import pandas as pd
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
@ -4,7 +4,23 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from haystack.core.pipeline.component_checks import *
|
||||
from haystack.core.pipeline.component_checks import (
|
||||
all_predecessors_executed,
|
||||
all_socket_predecessors_executed,
|
||||
any_predecessors_provided_input,
|
||||
any_socket_input_received,
|
||||
any_socket_value_from_predecessor_received,
|
||||
are_all_lazy_variadic_sockets_resolved,
|
||||
are_all_sockets_ready,
|
||||
can_component_run,
|
||||
can_not_receive_inputs_from_pipeline,
|
||||
has_any_trigger,
|
||||
has_lazy_variadic_socket_received_all_inputs,
|
||||
has_socket_received_all_inputs,
|
||||
has_user_input,
|
||||
is_any_greedy_socket_ready,
|
||||
is_socket_lazy_variadic,
|
||||
)
|
||||
from haystack.core.pipeline.component_checks import _NO_OUTPUT_PRODUCED
|
||||
from haystack.core.component.types import InputSocket, OutputSocket, Variadic, GreedyVariadic
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
import datetime
|
||||
|
||||
import sys
|
||||
from unittest.mock import Mock
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
import json
|
||||
|
||||
from haystack.evaluation import EvaluationRunResult
|
||||
import pytest
|
||||
|
Loading…
x
Reference in New Issue
Block a user