Skip to content

Commit 31cedef

Browse files
committed
Fix: FastAPI tests failed, could not import httpx
httpx is required in tests when using fastapi.testclient
1 parent 96347e2 commit 31cedef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN pip install --upgrade pip wheel twine
2121
# Preinstall dependencies for faster steps
2222
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
2323
RUN pip install --upgrade 'aleph-message~=0.2.3' eth_account pynacl base58
24-
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi requests
24+
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests
2525

2626
WORKDIR /opt/aleph-client/
2727
COPY . .

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ testing =
6363
pynacl
6464
base58
6565
fastapi
66+
# httpx is required in tests by fastapi.testclient
67+
httpx
6668
requests
6769
aleph-pytezos==0.1.0
6870
mqtt =

0 commit comments

Comments
 (0)