Commit 7ac75ee
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- stac_fastapi
- elasticsearch
- opensearch
3 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments