mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-10 11:13:08 +00:00
fix typing
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ async def fetch_onion(provider: str) -> dict:
|
||||
|
||||
# Configure httpx to use Tor SOCKS5 proxy
|
||||
async with httpx.AsyncClient(
|
||||
proxies={"http://": tor_proxy, "https://": tor_proxy},
|
||||
proxies={"http://": tor_proxy, "https://": tor_proxy}, # type: ignore
|
||||
timeout=httpx.Timeout(30.0),
|
||||
follow_redirects=True,
|
||||
) as client:
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ import asyncio
|
||||
import os
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from typing import AsyncGenerator
|
||||
from typing import AsyncGenerator, Generator
|
||||
from fastapi.testclient import TestClient
|
||||
from httpx import AsyncClient, ASGITransport
|
||||
from sqlmodel import SQLModel
|
||||
@@ -94,7 +94,7 @@ async def test_session(test_engine) -> AsyncGenerator[AsyncSession, None]:
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def test_client() -> TestClient:
|
||||
def test_client() -> Generator[TestClient, None, None]:
|
||||
"""Create a test client for the FastAPI app."""
|
||||
with patch.dict(os.environ, TEST_ENV, clear=True):
|
||||
with patch("sixty_nuts.Wallet") as mock_wallet_class:
|
||||
|
||||
Reference in New Issue
Block a user