sms_tool
This commit is contained in:
@@ -31,9 +31,9 @@ func TestGetGoodBrand(t *testing.T) {
|
||||
defer ts.Close()
|
||||
client := newClientWithServer(ts)
|
||||
res, err := client.GetGoodBrand(wps.GoodBrandReq{
|
||||
PageNo: "2",
|
||||
PageSize: "2",
|
||||
CBrandName: "测试",
|
||||
PageNo: "1",
|
||||
PageSize: "100",
|
||||
CBrandName: "",
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, res)
|
||||
@@ -70,7 +70,10 @@ func TestGetGoodsdept(t *testing.T) {
|
||||
defer ts.Close()
|
||||
|
||||
client := newClientWithServer(ts)
|
||||
res, err := client.GetGoodsdept(wps.GetGoodsdeptReq{})
|
||||
res, err := client.GetGoodsdept(wps.GetGoodsdeptReq{
|
||||
PageNo: "1",
|
||||
PageSize: "100",
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, res)
|
||||
}
|
||||
@@ -81,7 +84,7 @@ func TestGetDetailsGoods(t *testing.T) {
|
||||
|
||||
client := newClientWithServer(ts)
|
||||
res, err := client.GetDetailsGoods(wps.GetDetailsGoodsReq{
|
||||
FatherId: "WPS9_282520,WPS9_282450",
|
||||
FatherId: "WPS9_54846554",
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, res)
|
||||
|
Reference in New Issue
Block a user