refactor: Improve version verification comments in patch test

This commit is contained in:
Denis Bilenko 2025-03-03 21:13:59 +01:00 committed by Denis Bilenko (aider)
parent 84f4b5cd78
commit 1045dc169b
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ func TestPatchWheel(t *testing.T) {
runCmd(t, tempDir, "uv", "pip", "install", "-q", patchedWheel)
// AI TODO: extract this in a function, verifyVersion() that checks the version.
// AI TODO check both for prefix but also for exact version that you can get using ParseWheelFilename(patchedWheel)
// AI TODO: extract this in a function, verifyVersion(t, expectedVersion) that checks the version.
// AI TODO you can get expetedVersion using ParseWheelFilename(patchedWheel)
pyExec := filepath.Join(tempDir, ".venv", "bin", "python") // XXX Windows
cmdOut := captureOutput(t, tempDir, pyExec, "-c", "import myproj; myproj.print_version()")
version := strings.TrimSpace(cmdOut)