Skip to content

Commit 7ac75ee

Browse files
YuriZmytrakovYuri Zmytrakov
andauthored
fix: add redis to run tests (stac-utils#536)
**Description:** When running tests locally, in dev environement, we are encountering redis import error, because it is not being installed: ``` ImportError while loading conftest '/app/stac_fastapi/tests/conftest.py'. conftest.py:16: in <module> from stac_fastapi.core.core import ( ../core/stac_fastapi/core/core.py:27: in <module> from stac_fastapi.core.redis_utils import redis_pagination_links ../core/stac_fastapi/core/redis_utils.py:11: in <module> from redis import asyncio as aioredis E ModuleNotFoundError: No module named 'redis' ``` **PR Checklist:** - [x] Code is formatted and linted (run `pre-commit run --all-files`) - [x] Tests pass (run `make test`) - [ ] Documentation has been updated to reflect changes, if applicable - [x] Changes are added to the changelog --------- Co-authored-by: Yuri Zmytrakov <yzmytrakovNB@yzmytrakovNB.local>
1 parent 375bb8d commit 7ac75ee

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1616

1717
### Fixed
1818

19+
- Add Redis to be installed in dev environemnet for local testing [#536] (https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/536)
20+
1921
### Removed
2022

2123
### Updated

stac_fastapi/elasticsearch/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dev = [
4848
"pre-commit~=3.0.0",
4949
"ciso8601~=2.3.0",
5050
"httpx>=0.24.0,<0.28.0",
51+
"redis==6.4.0",
5152
]
5253
docs = [
5354
"mkdocs~=1.4.0",

stac_fastapi/opensearch/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ dev = [
4949
"pre-commit~=3.0.0",
5050
"ciso8601~=2.3.0",
5151
"httpx>=0.24.0,<0.28.0",
52+
"redis==6.4.0",
5253
]
5354
docs = [
5455
"mkdocs~=1.4.0",

0 commit comments

Comments
 (0)