Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ repos:
hooks:
- id: black
args: [ '--safe' ]
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: [
Expand Down
6 changes: 3 additions & 3 deletions stac_fastapi/elasticsearch/tests/resources/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ async def test_pagination_item_collection(app_client, ctx, txn_client):
idx = 0
for idx in range(100):
page_data = page.json()
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
if not next_link:
assert not page_data["features"]
break
Expand Down Expand Up @@ -556,7 +556,7 @@ async def test_pagination_post(app_client, ctx, txn_client):
for _ in range(100):
idx += 1
page_data = page.json()
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
if not next_link:
break

Expand Down Expand Up @@ -585,7 +585,7 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):

page = await app_client.get("/search", params={"ids": ",".join(ids), "limit": 3})
page_data = page.json()
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))

# Confirm token is idempotent
resp1 = await app_client.get(
Expand Down