Skip to content

Commit

Permalink
fastapi = "*"
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Nov 4, 2024
1 parent ba8e043 commit 80a931f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "Apache-2.0"

[tool.poetry.dependencies]
python = "^3.9"
fastapi = "<1"
fastapi = "*"
uvicorn = {extras = ["standard"], version="^0.18.2"}
gunicorn = ">=20.0.4"
gino = {version = "^1.0.0", extras = ["starlette"]}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ def test_create_read_delete_new_aliases(guid, aliases, client, is_post):

if is_post:
res = client.post(f"/metadata/{guid}/aliases", json={"aliases": aliases})
if aliases is None:
if aliases is None: # the endpoint expects a list
with pytest.raises(httpx.HTTPStatusError, match="422 Unprocessable Entity"):
res.raise_for_status()
else:
res.raise_for_status()
else:
# use PUT instead of POST, should result in same behavior for new aliases
res = client.put(f"/metadata/{guid}/aliases", json={"aliases": aliases})
if aliases is None:
if aliases is None: # the endpoint expects a list
with pytest.raises(httpx.HTTPStatusError, match="422 Unprocessable Entity"):
res.raise_for_status()
else:
Expand Down

0 comments on commit 80a931f

Please sign in to comment.