chore: cleaning unused imports from core tests

This commit is contained in:
David S. Batista 2025-04-29 19:09:11 +03:00 committed by GitHub
parent 07f4bf5522
commit 04e4701a17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 10 additions and 12 deletions

View File

@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import pytest
from haystack.core.component.sockets import InputSocket, Sockets
from haystack.core.pipeline import Pipeline
from haystack.testing.factory import component_class

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import tempfile
from unittest import mock
import pytest

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import AddFixedValue
from haystack.core.serialization import component_to_dict, component_from_dict
def test_run():

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Concatenate
from haystack.core.serialization import component_to_dict, component_from_dict
def test_input_lists():

View File

@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Double
from haystack.core.serialization import component_to_dict, component_from_dict
def test_double_default():

View File

@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import logging
from haystack.testing.sample_components import Greet
from haystack.core.serialization import component_to_dict, component_from_dict
def test_greet_message(caplog):

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Parity
from haystack.core.serialization import component_to_dict, component_from_dict
def test_parity():

View File

@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
import pytest
from haystack.testing.sample_components import Remainder
from haystack.core.serialization import component_to_dict, component_from_dict
def test_remainder_default():

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Repeat
from haystack.core.serialization import component_to_dict, component_from_dict
def test_repeat_default():

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Subtract
from haystack.core.serialization import component_to_dict, component_from_dict
def test_subtract():

View File

@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Sum
from haystack.core.serialization import component_to_dict, component_from_dict
def test_sum_receives_no_values():

View File

@ -1,8 +1,8 @@
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
#
# SPDX-License-Identifier: Apache-2.0
from haystack.testing.sample_components import Threshold
from haystack.core.serialization import component_to_dict, component_from_dict
def test_threshold():