Skip to content

Commit 1e034ba

Browse files
committed
pre-commit
1 parent be248a0 commit 1e034ba

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1717
- Examples folder with example docker setup for running sfes from pip [#147](https://github.com/stac-utils/stac-fastapi-elasticsearch/pull/147)
1818

1919
### Changed
20+
21+
- Update elasticsearch version from 8.1.3 to 8.10.4 in cicd, gh actions [#164](https://github.com/stac-utils/stac-fastapi-elasticsearch/pull/164)
22+
2023
### Fixed
2124

2225
- Corrected the closing of client connections in ES index management functions [#132](https://github.com/stac-utils/stac-fastapi-elasticsearch/issues/132)

stac_fastapi/elasticsearch/tests/resources/test_collection.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import uuid
2+
13
import pystac
24
import pytest
3-
import uuid
5+
46
from ..conftest import create_collection
57

8+
69
async def test_create_and_delete_collection(app_client, load_test_data):
710
"""Test creation and deletion of a collection"""
811
test_collection = load_test_data("test_collection.json")
@@ -73,6 +76,7 @@ async def test_returns_valid_collection(ctx, app_client):
7376
)
7477
collection.validate()
7578

79+
7680
@pytest.mark.asyncio
7781
async def test_pagination_collection(app_client, ctx, txn_client):
7882
"""Test collection pagination links"""
@@ -85,9 +89,7 @@ async def test_pagination_collection(app_client, ctx, txn_client):
8589
ids.append(ctx.collection["id"])
8690

8791
# Paginate through all 6 collections with a limit of 1 (expecting 7 requests)
88-
page = await app_client.get(
89-
f"/collections", params={"limit": 1}
90-
)
92+
page = await app_client.get("/collections", params={"limit": 1})
9193

9294
collection_ids = []
9395
idx = 0

0 commit comments

Comments
 (0)