Skip to content

Commit 93d1e2e

Browse files
committed
rename TestVmCache to LocalVmCache to avoid test warning
1 parent 722aa22 commit 93d1e2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/aleph/sdk/vm/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async def keys(self, pattern: str = "*") -> List[str]:
110110
return await resp.json()
111111

112112

113-
class TestVmCache(BaseVmCache):
113+
class LocalVmCache(BaseVmCache):
114114
"""This is a local, dict-based cache that can be used for testing purposes."""
115115

116116
def __init__(self):

tests/unit/test_vm_cache.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import pytest
22

3-
from aleph.sdk.vm.cache import TestVmCache, sanitize_cache_key
3+
from aleph.sdk.vm.cache import LocalVmCache, sanitize_cache_key
44

55

66
@pytest.mark.asyncio
77
async def test_local_vm_cache():
8-
cache = TestVmCache()
8+
cache = LocalVmCache()
99
assert (await cache.get("doesnotexist")) is None
1010
assert len(await cache.keys()) == 0
1111
key = "thisdoesexist"

0 commit comments

Comments
 (0)