riteshghorse commented on code in PR #28046:
URL: https://github.com/apache/beam/pull/28046#discussion_r1300549706
##########
sdks/go/pkg/beam/core/runtime/xlangx/expansionx/download_test.go:
##########
@@ -217,3 +217,31 @@ func TestGetJar_dev(t *testing.T) {
t.Errorf("error message does not contain gradle command %v for
user, got message: %v", gradleTarget, err)
}
}
+
+func TestGetPythonVersion(t *testing.T) {
+ tests := []struct {
+ name string
+ PYTHON_PATH string
+ }{
+ {
+ name: "PYTHON_PATH set",
+ PYTHON_PATH: "/bin/python",
+ },
+ {
+ name: "PYTHON_PATH not set",
+ PYTHON_PATH: "",
+ },
+ }
+
+ for _, test := range tests {
+ os.Setenv("PYTHON_PATH", test.PYTHON_PATH)
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]