From 84f4b5cd7838a6ed9ade5d8d02e97eeb27e46e20 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Mon, 3 Mar 2025 21:12:38 +0100 Subject: [PATCH] test: Add TODO comments for version verification in patch test --- libs/patchwheel/patch_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/patchwheel/patch_test.go b/libs/patchwheel/patch_test.go index c8762bd63..07e799990 100644 --- a/libs/patchwheel/patch_test.go +++ b/libs/patchwheel/patch_test.go @@ -144,6 +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) pyExec := filepath.Join(tempDir, ".venv", "bin", "python") // XXX Windows cmdOut := captureOutput(t, tempDir, pyExec, "-c", "import myproj; myproj.print_version()") version := strings.TrimSpace(cmdOut)