Skip to content

Commit

Permalink
Remove ceil on fastapi version (#556)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gadomski authored Apr 4, 2023
1 parent 01bc0d5 commit d8e3eda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions stac_fastapi/api/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ def _assert_dependency_applied(api, routes):
), "Unauthenticated requests should be rejected"
assert response.json() == {"detail": "Not authenticated"}

make_request = getattr(client, route["method"].lower())
path = route["path"].format(
collectionId="test_collection", itemId="test_item"
)
response = make_request(
path,
response = client.request(
method=route["method"].lower(),
url=path,
auth=("bob", "dobbs"),
data='{"dummy": "payload"}',
headers={"content-type": "application/json"},
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/types/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
desc = f.read()

install_requires = [
"fastapi>=0.73.0,<0.87",
"fastapi>=0.73.0",
"attrs",
"pydantic[dotenv]",
"stac_pydantic==2.0.*",
Expand Down

0 comments on commit d8e3eda

Please sign in to comment.