Co-Authored-By: Quentin Torroba <quentin.torroba@mistral.ai> Co-Authored-By: Michel Thomazo <michel.thomazo@mistral.ai> Co-Authored-By: Vincent Guilloux <vincent.guilloux@mistral.ai>
17 lines
526 B
Python
17 lines
526 B
Python
from __future__ import annotations
|
|
|
|
from vibe.cli.update_notifier.ports.update_cache_repository import (
|
|
UpdateCache,
|
|
UpdateCacheRepository,
|
|
)
|
|
|
|
|
|
class FakeUpdateCacheRepository(UpdateCacheRepository):
|
|
def __init__(self, update_cache: UpdateCache | None = None) -> None:
|
|
self.update_cache: UpdateCache | None = update_cache
|
|
|
|
async def get(self) -> UpdateCache | None:
|
|
return self.update_cache
|
|
|
|
async def set(self, update_cache: UpdateCache) -> None:
|
|
self.update_cache = update_cache
|