Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-at-cb committed Oct 18, 2024
1 parent b105c99 commit f51b016
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cdp/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
from cdp.address import Address
from cdp.balance_map import BalanceMap
from cdp.cdp import Cdp
from cdp.client.models.create_wallet_webhook_request import CreateWalletWebhookRequest
from cdp.client.models.address import Address as AddressModel
from cdp.client.models.create_address_request import CreateAddressRequest
from cdp.client.models.create_wallet_request import (
CreateWalletRequest,
CreateWalletRequestWallet,
)
from cdp.client.models.create_wallet_webhook_request import CreateWalletWebhookRequest
from cdp.client.models.wallet import Wallet as WalletModel
from cdp.client.models.wallet_list import WalletList
from cdp.contract_invocation import ContractInvocation
Expand Down
5 changes: 3 additions & 2 deletions tests/factories/webhook_factory.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import pytest
from cdp.webhook import Webhook, WebhookModel, WebhookEventType

from cdp.webhook import Webhook, WebhookEventType, WebhookModel


@pytest.fixture
def webhook_factory():
"""Create and return a factory for Webhook fixtures."""

def _create_webhook(
webhook_id="webhook-123",
network_id="base-sepolia",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,4 +644,4 @@ def test_create_webhook(mock_api_clients, wallet_factory, webhook_factory):
assert isinstance(webhook, Webhook)

# Additional assertions to check the returned webhook object
assert webhook.notification_uri == notification_uri
assert webhook.notification_uri == notification_uri
4 changes: 2 additions & 2 deletions tests/test_webhook.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from unittest.mock import patch

from cdp.client.models.create_webhook_request import CreateWebhookRequest
from cdp.client.models.update_webhook_request import UpdateWebhookRequest
from cdp.client.models.webhook import WebhookEventType, WebhookEventTypeFilter, WebhookEventFilter
from cdp.client.models.webhook import WebhookEventFilter, WebhookEventType, WebhookEventTypeFilter
from cdp.webhook import Webhook, WebhookModel


Expand Down Expand Up @@ -43,7 +44,6 @@ def test_webhook_creation(mock_api_clients, webhook_factory):
@patch("cdp.Cdp.api_clients")
def test_webhook_delete(mock_api_clients):
"""Test Webhook delete method."""

webhook_id = "webhook-123"

Webhook.delete(webhook_id)
Expand Down

0 comments on commit f51b016

Please sign in to comment.