fix: unittests

This commit is contained in:
lilong.129
2023-07-22 11:40:16 +08:00
parent c712aa425e
commit e212ccf0b9
8 changed files with 18 additions and 36 deletions

View File

@@ -6,12 +6,10 @@ import (
"github.com/httprunner/httprunner/v4/hrp"
)
const HTTP_BIN_URL = "http://127.0.0.1:80"
func TestCaseUploadFile(t *testing.T) {
testcase := &hrp.TestCase{
Config: hrp.NewConfig("test upload file to httpbin").
SetBaseURL(HTTP_BIN_URL).
SetBaseURL("https://httpbin.org").
WithVariables(map[string]interface{}{"upload_file": "test.env"}),
TestSteps: []hrp.IStep{
hrp.NewStep("upload file explicitly").