mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-07 04:27:15 +00:00
chore: cleaning unused imports from core tests
This commit is contained in:
parent
07f4bf5522
commit
04e4701a17
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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):
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
@ -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():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user