Skip to content

Commit d8e3eda

Browse files
authored
Remove ceil on fastapi version (#556)
* deps: remove ceil on fastapi version It was added for some reason, but the reason appears to be lost in time. * test: fix for new TestClient Described here: https://github.com/tiangolo/fastapi/releases/tag/0.87.0
1 parent 01bc0d5 commit d8e3eda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stac_fastapi/api/tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ def _assert_dependency_applied(api, routes):
3434
), "Unauthenticated requests should be rejected"
3535
assert response.json() == {"detail": "Not authenticated"}
3636

37-
make_request = getattr(client, route["method"].lower())
3837
path = route["path"].format(
3938
collectionId="test_collection", itemId="test_item"
4039
)
41-
response = make_request(
42-
path,
40+
response = client.request(
41+
method=route["method"].lower(),
42+
url=path,
4343
auth=("bob", "dobbs"),
4444
data='{"dummy": "payload"}',
4545
headers={"content-type": "application/json"},

stac_fastapi/types/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
desc = f.read()
77

88
install_requires = [
9-
"fastapi>=0.73.0,<0.87",
9+
"fastapi>=0.73.0",
1010
"attrs",
1111
"pydantic[dotenv]",
1212
"stac_pydantic==2.0.*",

0 commit comments

Comments
 (0)