diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 5871bd9e..e5775c60 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -5,7 +5,6 @@ Read more about conftest.py under: https://pytest.org/latest/plugins.html """ - from collections.abc import Generator from pathlib import Path from tempfile import NamedTemporaryFile diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index acc186a1..16e86673 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -3,9 +3,8 @@ from tempfile import NamedTemporaryFile from aleph.sdk.chains.ethereum import ETHAccount -from typer.testing import CliRunner - from aleph_client.__main__ import app +from typer.testing import CliRunner runner = CliRunner() diff --git a/tests/unit/test_instance.py b/tests/unit/test_instance.py index f0614138..7183d633 100644 --- a/tests/unit/test_instance.py +++ b/tests/unit/test_instance.py @@ -6,12 +6,6 @@ import pytest from aiohttp import InvalidURL from aleph.sdk.chains.ethereum import ETHAccount -from aleph_message.models import Chain -from aleph_message.models.execution.base import Payment, PaymentType -from aleph_message.models.execution.environment import CpuProperties -from eth_utils.currency import to_wei -from multidict import CIMultiDict, CIMultiDictProxy - from aleph_client.commands.instance import delete from aleph_client.commands.instance.network import ( FORBIDDEN_HOSTS, @@ -29,6 +23,11 @@ MemoryUsage, UsagePeriod, ) +from aleph_message.models import Chain +from aleph_message.models.execution.base import Payment, PaymentType +from aleph_message.models.execution.environment import CpuProperties +from eth_utils.currency import to_wei +from multidict import CIMultiDict, CIMultiDictProxy def dummy_machine_info() -> MachineInfo: diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 996a390d..431d8eb3 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1,3 +1,4 @@ +from aleph_client.utils import get_message_type_value from aleph_message.models import ( AggregateMessage, ForgetMessage, @@ -7,8 +8,6 @@ ) from aleph_message.models.base import MessageType -from aleph_client.utils import get_message_type_value - def test_get_message_type_value(): assert get_message_type_value(PostMessage) == MessageType.post