Skip to content

Commit

Permalink
fix: httpx fix as per latest version (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikynoah authored Dec 9, 2024
1 parent 2176b1a commit 2a22471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creyPY/fastapi/testing_async.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json
from httpx import AsyncClient
from httpx import AsyncClient, ASGITransport


class AsyncGenericClient:
def __init__(self, app):
self.c = AsyncClient(app=app, base_url="http://testserver", follow_redirects=True)
self.c = AsyncClient(transport=ASGITransport(app=app), base_url="http://testserver", follow_redirects=True)
self.default_headers = {}

async def get(self, url: str, r_code: int = 200, parse_json=True):
Expand Down

0 comments on commit 2a22471

Please sign in to comment.