v2.15.0 (#773)
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai> Co-authored-by: Nelson PROIA <144663685+Nelson-PROIA@users.noreply.github.com> Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
702d0f412e
commit
cafb6d4147
247 changed files with 12401 additions and 3029 deletions
|
|
@ -5,6 +5,8 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
|||
import pytest
|
||||
|
||||
from vibe.core.session.resume_sessions import (
|
||||
ResumeSessionInfo,
|
||||
can_delete_resume_session_source,
|
||||
list_remote_resume_sessions,
|
||||
short_session_id,
|
||||
)
|
||||
|
|
@ -45,6 +47,25 @@ class TestShortSessionId:
|
|||
assert short_session_id("") == ""
|
||||
|
||||
|
||||
class TestCanDeleteResumeSession:
|
||||
def test_local_source_can_delete(self) -> None:
|
||||
assert can_delete_resume_session_source("local") is True
|
||||
|
||||
def test_remote_source_cannot_delete(self) -> None:
|
||||
assert can_delete_resume_session_source("remote") is False
|
||||
|
||||
def test_session_info_can_delete_matches_source(self) -> None:
|
||||
session = ResumeSessionInfo(
|
||||
session_id="session-a",
|
||||
source="local",
|
||||
cwd="/test",
|
||||
title=None,
|
||||
end_time=None,
|
||||
)
|
||||
|
||||
assert session.can_delete is True
|
||||
|
||||
|
||||
class TestListRemoteResumeSessions:
|
||||
@pytest.mark.asyncio
|
||||
async def test_returns_empty_when_vibe_code_disabled(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue