diff --git a/tests/conftest.py b/tests/conftest.py index 02ea229..449d7af 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 @@ -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 diff --git a/vertex_protocol/utils/backend.py b/vertex_protocol/utils/backend.py index 29ba9dd..b79aa9b 100644 --- a/vertex_protocol/utils/backend.py +++ b/vertex_protocol/utils/backend.py @@ -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"