Skip to content

Commit

Permalink
Fix: FastAPI tests failed, could not import httpx
Browse files Browse the repository at this point in the history
httpx is required in tests when using fastapi.testclient
  • Loading branch information
hoh committed Nov 21, 2022
1 parent 96347e2 commit 31cedef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN pip install --upgrade pip wheel twine
# Preinstall dependencies for faster steps
RUN pip install --upgrade secp256k1 coincurve aiohttp eciespy python-magic typer
RUN pip install --upgrade 'aleph-message~=0.2.3' eth_account pynacl base58
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi requests
RUN pip install --upgrade pytest pytest-cov pytest-asyncio mypy types-setuptools pytest-asyncio fastapi httpx requests

WORKDIR /opt/aleph-client/
COPY . .
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ testing =
pynacl
base58
fastapi
# httpx is required in tests by fastapi.testclient
httpx
requests
aleph-pytezos==0.1.0
mqtt =
Expand Down

0 comments on commit 31cedef

Please sign in to comment.