refactor: move exec to myexec

This commit is contained in:
debugtalk
2022-10-16 14:13:43 +08:00
parent 185396e93b
commit f21c949897
17 changed files with 236 additions and 241 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/v4/hrp"
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
"github.com/httprunner/httprunner/v4/hrp/internal/myexec"
)
func convert2GoTestScripts(paths ...string) error {
@@ -48,7 +48,7 @@ func convert2GoTestScripts(paths ...string) error {
}
// format pytest scripts with black
return builtin.ExecPython3Command("black", pytestPaths...)
return myexec.ExecPython3Command("black", pytestPaths...)
}
//go:embed testcase.tmpl