Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: engine client tests #75

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import MagicMock, patch
from eth_account import Account
import pytest
import requests
from vertex_protocol.client import VertexClient, create_vertex_client
from vertex_protocol.contracts import VertexContractsContext
from vertex_protocol.engine_client import EngineClient
Expand Down Expand Up @@ -190,13 +191,13 @@ def link_signer_params(senders: list[str]) -> dict:

@pytest.fixture
def mock_post() -> MagicMock:
with patch("requests.post") as mock_post:
with patch.object(requests.Session, "post") as mock_post:
yield mock_post


@pytest.fixture
def mock_get() -> MagicMock:
with patch("requests.get") as mock_post:
with patch.object(requests.Session, "get") as mock_post:
yield mock_post


Expand Down
4 changes: 2 additions & 2 deletions vertex_protocol/utils/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class VertexBackendURL(StrEnum):

SEPOLIA_TESTNET_GATEWAY = "https://gateway.sepolia-test.vertexprotocol.com/v1"
SEPOLIA_TESTNET_INDEXER = "https://archive.sepolia-test.vertexprotocol.com/v1"

MAINNET_GATEWAY = "https://gateway.prod.vertexprotocol.com/v1"
MAINNET_INDEXER = "https://archive.prod.vertexprotocol.com/v1"

DEVNET_GATEWAY = "http://localhost:80"
DEVNET_INDEXER = "http://localhost:8000"
Loading