Co-authored-by: Quentin Torroba <quentin.torroba@mistral.ai>
Co-authored-by: Clément Siriex <clement.sirieix@mistral.ai>
Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai>
Co-authored-by: Michel Thomazo <michel.thomazo@mistral.ai>
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-02-17 16:23:28 +01:00 committed by GitHub
parent 51fecc67d9
commit ec7f3b25ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
107 changed files with 8002 additions and 535 deletions

View file

@ -26,7 +26,7 @@ class SpyStreamingFormatter:
def test_run_programmatic_preload_streaming_is_batched(
monkeypatch: pytest.MonkeyPatch,
monkeypatch: pytest.MonkeyPatch, telemetry_events: list[dict]
) -> None:
spy = SpyStreamingFormatter()
monkeypatch.setattr(
@ -77,6 +77,14 @@ def test_run_programmatic_preload_streaming_is_batched(
Role.user,
Role.assistant,
]
new_session = [
e for e in telemetry_events if e.get("event_name") == "vibe/new_session"
]
assert len(new_session) == 1
assert new_session[0]["properties"]["entrypoint"] == "programmatic"
assert "version" in new_session[0]["properties"]
assert (
spy.emitted[0][1] == "You are Vibe, a super useful programming assistant."
)