From 1045dc169bc52bc44f1c667aef1bb301dabfd367 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 3 Mar 2025 21:13:59 +0100 Subject: [PATCH] refactor: Improve version verification comments in patch test --- libs/patchwheel/patch_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/patchwheel/patch_test.go b/libs/patchwheel/patch_test.go index 07e799990..1e97e27ad 100644 --- a/libs/patchwheel/patch_test.go +++ b/libs/patchwheel/patch_test.go @@ -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)