Skip to content

Commit 8ee817a

Browse files
committed
Fix flake8 E741 errors
E741: Do not use variables named 'I', 'O', or 'l'
1 parent 7d6f984 commit 8ee817a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stac_fastapi/elasticsearch/tests/resources/test_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ async def test_pagination_item_collection(app_client, ctx, txn_client):
521521
idx = 0
522522
for idx in range(100):
523523
page_data = page.json()
524-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
524+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
525525
if not next_link:
526526
assert not page_data["features"]
527527
break
@@ -556,7 +556,7 @@ async def test_pagination_post(app_client, ctx, txn_client):
556556
for _ in range(100):
557557
idx += 1
558558
page_data = page.json()
559-
next_link = list(filter(lambda l: l["rel"] == "next", page_data["links"]))
559+
next_link = list(filter(lambda link: link["rel"] == "next", page_data["links"]))
560560
if not next_link:
561561
break
562562

@@ -585,7 +585,7 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):
585585

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

590590
# Confirm token is idempotent
591591
resp1 = await app_client.get(

0 commit comments

Comments
 (0)