Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 28, 2024
1 parent e955c45 commit 3f93b17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pytest
from faker import Faker
from fastapi import FastAPI, status
from httpx import ASGITransport
from models_library.payments import UserInvoiceAddress
from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
from respx import MockRouter
Expand Down Expand Up @@ -218,7 +219,7 @@ async def test_payments_gateway_error_exception():
async def _go():
with _raise_as_payments_gateway_error(operation_id="foo"):
async with httpx.AsyncClient(
app=FastAPI(),
transport=ASGITransport(app=FastAPI()),
base_url="http://payments.testserver.io",
) as client:
response = await client.post("/foo", params={"x": "3"}, json={"y": 12})
Expand Down

0 comments on commit 3f93b17

Please sign in to comment.