chore: cleaning up unused imports in tests (#8887)

This commit is contained in:
David S. Batista 2025-02-20 17:56:16 +01:00 committed by GitHub
parent 44fb20c2d5
commit 7d51793727
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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