fusenapi/server/backend/test/quotationdetaillogic_test.go

30 lines
629 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 请求,新增用户地址
2023-07-24 11:17:02 +00:00
tp := ses.Get(fmt.Sprintf("http://%s:%d/api//quotation/detail", cnf.Host, cnf.Port))
2023-06-27 10:09:56 +00:00
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())
}