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

View File

@@ -1,8 +1,11 @@
package pytest
import (
"fmt"
"github.com/httprunner/httprunner/hrp/internal/builtin"
"github.com/httprunner/httprunner/hrp/internal/sdk"
"github.com/httprunner/httprunner/hrp/internal/version"
)
func RunPytest(args []string) error {
@@ -11,7 +14,8 @@ func RunPytest(args []string) error {
Action: "hrp pytest",
})
python3, err := builtin.EnsurePython3Venv("httprunner")
httprunner := fmt.Sprintf("httprunner>=%s", version.HttpRunnerMinVersion)
python3, err := builtin.EnsurePython3Venv(httprunner)
if err != nil {
return err
}