Skip to content

Commit

Permalink
fix: run ruff --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Sep 25, 2024
1 parent 050c9e5 commit b815f67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
11 changes: 5 additions & 6 deletions tests/unit/test_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from aleph_client.utils import get_message_type_value
from aleph_message.models import (
AggregateMessage,
ForgetMessage,
Expand All @@ -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
Expand Down

0 comments on commit b815f67

Please sign in to comment.