fusenapi/server/backend/test/quotationdetaillogic_test.go

30 lines
625 B
Go
Raw Normal View History

package backendtest
2023-06-27 10:09:56 +00:00
import (
"fmt"
2023-07-05 11:00:33 +00:00
fstests "fusenapi/utils/fstests"
2023-06-27 10:09:56 +00:00
"log"
"testing"
)
func TestCaseQuotationDetail(t *testing.T) {
2023-06-28 11:32:41 +00:00
ses := fstests.GetBackendSessionWithUserToken(t, gserver, cnf.Host, cnf.Port)
2023-06-27 10:09:56 +00:00
// 构建新增地址请求体
// addrReq := types.RequestQuotationId{
// QuotationId: 1003,
// }
// 向服务器发送 POST 请求,新增用户地址
tp := ses.Get(fmt.Sprintf("http://%s:%d//quotation/detail", cnf.Host, cnf.Port))
tp.QueryParam("id").Set(1003)
resp, err := tp.TestExecute(gserver)
log.Println(resp.Json())
if err != nil {
t.Error(err)
return
}
log.Println(resp.Json())
}