Skip to content

Commit d00ec14

Browse files
committed
add tests
1 parent 2318d6f commit d00ec14

32 files changed

+3394
-2
lines changed

stac_fastapi/opensearch/pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
testpaths = tests
3+
addopts = -sv
4+
asyncio_mode = auto

stac_fastapi/opensearch/stac_fastapi/opensearch/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _es_config() -> Dict[str, Any]:
4646
_forbidden_fields: Set[str] = {"type"}
4747

4848

49-
class SearchSettings(ApiSettings):
49+
class OpensearchSettings(ApiSettings):
5050
"""API settings."""
5151

5252
# Fields which are defined by STAC but not included in the database model
@@ -59,7 +59,7 @@ def create_client(self):
5959
return OpenSearch(**_es_config())
6060

6161

62-
class AsyncSearchSettings(ApiSettings):
62+
class AsyncOpensearchSettings(ApiSettings):
6363
"""API settings."""
6464

6565
# Fields which are defined by STAC but not included in the database model

stac_fastapi/opensearch/tests/__init__.py

Whitespace-only changes.

stac_fastapi/opensearch/tests/api/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)