v2.17.0 (#822)
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com> Co-authored-by: Hdandria <henri.dandria@mistral.ai> Co-authored-by: Ivana Dunisijevic <ivana.dunisijevic@mistral.ai> Co-authored-by: Jean Burellier <sheplu@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Mert Unsal <mert.unsal@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@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: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: renovate-mistral[bot] <253709520+renovate-mistral[bot]@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
564a14365e
commit
6bedf271ce
223 changed files with 10533 additions and 6947 deletions
|
|
@ -7,6 +7,8 @@ from pathlib import Path
|
|||
import tomllib
|
||||
from typing import cast
|
||||
|
||||
import keyring
|
||||
from keyring.errors import KeyringError
|
||||
import pytest
|
||||
from textual.events import Resize
|
||||
from textual.geometry import Size
|
||||
|
|
@ -59,6 +61,17 @@ BROWSER_AUTH_API_URL = "https://console.mistral.ai/api"
|
|||
TEST_NOW = datetime(2026, 3, 16, tzinfo=UTC)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def disable_keyring(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
"""Force the .env fallback so persist tests never touch the real OS keyring."""
|
||||
|
||||
def _unavailable(service: str, username: str, password: str) -> None:
|
||||
raise KeyringError("keyring disabled in tests")
|
||||
|
||||
monkeypatch.setattr(keyring, "set_password", _unavailable)
|
||||
monkeypatch.setattr(keyring, "delete_password", lambda service, username: None)
|
||||
|
||||
|
||||
def _expected_browser_sign_in_url(process_id: str = "process-1") -> str:
|
||||
return build_sign_in_process(TEST_NOW, process_id=process_id).sign_in_url
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue