mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-11 21:48:36 +00:00
fix precommit errors
This commit is contained in:
parent
d32d8ec94b
commit
82ca72bde6
2 changed files with 9 additions and 7 deletions
|
@ -4,13 +4,11 @@
|
|||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import pytest
|
||||
|
||||
from llama_stack.providers.utils.kvstore.config import SqliteKVStoreConfig
|
||||
from llama_stack.providers.utils.kvstore.sqlite import SqliteKVStoreImpl
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_memory_kvstore_basic_operations():
|
||||
"""Test basic CRUD operations with :memory: database."""
|
||||
config = SqliteKVStoreConfig(db_path=":memory:")
|
||||
|
@ -35,7 +33,6 @@ async def test_memory_kvstore_basic_operations():
|
|||
await kvstore.close()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_memory_kvstore_range_operations():
|
||||
"""Test range operations with :memory: database."""
|
||||
config = SqliteKVStoreConfig(db_path=":memory:")
|
||||
|
@ -66,7 +63,6 @@ async def test_memory_kvstore_range_operations():
|
|||
await kvstore.close()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_memory_kvstore_multiple_instances():
|
||||
"""Test that multiple :memory: instances are independent."""
|
||||
config1 = SqliteKVStoreConfig(db_path=":memory:")
|
||||
|
@ -98,7 +94,6 @@ async def test_memory_kvstore_multiple_instances():
|
|||
await kvstore2.close()
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_memory_kvstore_persistence_behavior():
|
||||
"""Test that :memory: database doesn't persist across instances."""
|
||||
config = SqliteKVStoreConfig(db_path=":memory:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue