Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai>
Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com>
Co-authored-by: Mert Unsal <mertunsal1905@gmail.com>
Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com>
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: maximevoisin-pm <maxime.voisin@mistral.ai>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-05-27 17:10:40 +02:00 committed by GitHub
parent adb1ca74ce
commit cf3f4ca58f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
143 changed files with 3457 additions and 1351 deletions

View file

@ -499,7 +499,7 @@ class TestTeleportServiceExecute:
repo="repo",
branch="main",
commit="abc123",
diff="local diff is intentionally not sent",
diff="some local diff",
)
)
service._git.is_commit_pushed = AsyncMock(return_value=True)
@ -523,11 +523,15 @@ class TestTeleportServiceExecute:
"role": "user",
"parts": [{"type": "text", "text": "test prompt"}],
}
assert seen_body["context"] == {
"repositories": [
{"repoUrl": "https://github.com/owner/repo", "branch": "main"}
]
}
repos = seen_body["context"]["repositories"]
assert len(repos) == 1
assert repos[0]["repoUrl"] == "https://github.com/owner/repo"
assert repos[0]["branch"] == "main"
assert repos[0]["commitSha"] == "abc123"
assert repos[0]["diff"]["format"] == "git-diff"
assert repos[0]["diff"]["encoding"] == "base64"
assert repos[0]["diff"]["compression"] == "zstd"
assert len(repos[0]["diff"]["content"]) > 0
assert "idempotencyKey" in seen_body
@pytest.mark.asyncio