mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
Add integration test for redis memory provider
This commit is contained in:
parent
4b94cd313c
commit
01ae720a7b
1 changed files with 17 additions and 1 deletions
|
@ -93,7 +93,23 @@ def memory_chroma() -> ProviderFixture:
|
|||
)
|
||||
|
||||
|
||||
MEMORY_FIXTURES = ["faiss", "pgvector", "weaviate", "remote", "chroma"]
|
||||
@pytest.fixture(scope="session")
|
||||
def memory_redis() -> ProviderFixture:
|
||||
return ProviderFixture(
|
||||
providers=[
|
||||
Provider(
|
||||
provider_id="redis",
|
||||
provider_type="remote::redis",
|
||||
config=RemoteProviderConfig(
|
||||
host=get_env_or_fail("REDIS_HOST"),
|
||||
port=get_env_or_fail("REDIS_PORT"),
|
||||
).model_dump(),
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
MEMORY_FIXTURES = ["faiss", "pgvector", "weaviate", "remote", "chroma", "redis"]
|
||||
|
||||
|
||||
@pytest_asyncio.fixture(scope="session")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue