From 80a931f8d8cbfcf63a80b91dcc1e34d3a35ebb4b Mon Sep 17 00:00:00 2001 From: Pauline Ribeyre <4224001+paulineribeyre@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:54:46 -0600 Subject: [PATCH] fastapi = "*" --- poetry.lock | 2 +- pyproject.toml | 2 +- tests/test_aliases.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0c175164..7f88a65e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2074,4 +2074,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "dfd80eb37e76da9910a1682438356c18c18811b0f9c94a94c77b0fecc4170cd8" +content-hash = "a55cc0c83463420124d7e02de636221b883a5da3c2027772fd783ddab0e0fb3b" diff --git a/pyproject.toml b/pyproject.toml index f3420cf4..00dd1981 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]} diff --git a/tests/test_aliases.py b/tests/test_aliases.py index cb3983c5..46e4428f 100644 --- a/tests/test_aliases.py +++ b/tests/test_aliases.py @@ -29,7 +29,7 @@ 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: @@ -37,7 +37,7 @@ def test_create_read_delete_new_aliases(guid, aliases, client, is_post): 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: