change: hrp install httprunner v4

This commit is contained in:
debugtalk
2022-04-25 18:36:24 +08:00
parent f5ff03d346
commit 1a1016bc37
7 changed files with 15 additions and 7 deletions
+3 -1
View File
@@ -10,6 +10,7 @@ import (
"github.com/httprunner/httprunner/hrp"
"github.com/httprunner/httprunner/hrp/internal/builtin"
"github.com/httprunner/httprunner/hrp/internal/sdk"
"github.com/httprunner/httprunner/hrp/internal/version"
)
func Convert2TestScripts(destType string, paths ...string) error {
@@ -28,7 +29,8 @@ func Convert2TestScripts(destType string, paths ...string) error {
}
func convert2PyTestScripts(paths ...string) error {
python3, err := builtin.EnsurePython3Venv("httprunner")
httprunner := fmt.Sprintf("httprunner>=%s", version.HttpRunnerMinVersion)
python3, err := builtin.EnsurePython3Venv(httprunner)
if err != nil {
return err
}