Skip to content

Commit

Permalink
[Fix] Fix tests failing due to deprecated app argument in httpx cli…
Browse files Browse the repository at this point in the history
…ent (#140)
  • Loading branch information
jaywonchung authored Nov 28, 2024
1 parent 5a419c4 commit b73bd7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ Documentation = "https://ml.energy/zeus"
[project.optional-dependencies]
# One day FastAPI will drop support for Pydantic V1. Then fastapi has to be pinned as well.
pfo = ["pydantic<2"]
pfo-server = ["fastapi[all]", "pydantic<2", "lowtime", "aiofiles", "torch"]
pfo-server = ["fastapi[standard]", "pydantic<2", "lowtime", "aiofiles", "torch"]
bso = ["pydantic<2"]
bso-server = ["fastapi[all]", "sqlalchemy", "pydantic<2", "python-dotenv"]
bso-server = ["fastapi[standard]", "sqlalchemy", "pydantic<2", "python-dotenv"]
migration = ["alembic", "sqlalchemy", "pydantic<2", "python-dotenv"]
lint = ["ruff", "black==22.6.0", "pyright", "pandas-stubs", "transformers"]
test = ["fastapi[all]", "sqlalchemy", "pydantic<2", "pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1", "anyio==3.7.1", "aiosqlite==0.20.0", "numpy<2"]
test = ["fastapi[standard]", "sqlalchemy", "pydantic<2", "pytest==7.3.2", "pytest-mock==3.10.0", "pytest-xdist==3.3.1", "anyio==3.7.1", "aiosqlite==0.20.0", "numpy<2"]
docs = ["mkdocs-material[imaging]==9.5.19", "mkdocstrings[python]==0.25.0", "mkdocs-gen-files==0.5.0", "mkdocs-literate-nav==0.6.1", "mkdocs-section-index==0.3.9", "mkdocs-redirects==1.2.1", "urllib3<2", "black"]
# greenlet is for supporting apple mac silicon for sqlalchemy(https://docs.sqlalchemy.org/en/20/faq/installation.html)
dev = ["zeus-ml[pfo-server,bso,bso-server,migration,lint,test]", "greenlet"]
Expand Down
2 changes: 1 addition & 1 deletion zeus/optimizer/pipeline_frequency/server/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def custom_route_handler(request: Request) -> Response:
request.method,
request.url,
await request.json() if await request.body() else "None",
response.body.decode(response.charset),
bytes(response.body).decode(response.charset),
)
return response

Expand Down

0 comments on commit b73bd7f

Please sign in to comment.