This commit is contained in:
suyl
2021-07-09 13:35:08 +08:00
parent 91eeb508a2
commit c730727a32
9 changed files with 147 additions and 30 deletions

View File

@@ -111,7 +111,7 @@ func TestOrderShoudSettlementService2(t *testing.T) {
}
func TestOrderAddTips(t *testing.T) {
err := api.OrderAddTips("2015763667000041", 100, "jxadmin")
err := api.OrderAddTips("2116212802000361", 100, "jxadmin")
if err != nil {
t.Fatal(err.Error())
}
@@ -180,7 +180,7 @@ func TestProcessQuestionPic(t *testing.T) {
}
func TestCancelAndRefund(t *testing.T) {
err := api.CancelAndRefund("2030098332000261", "jxadmin", "协商一致")
err := api.CancelAndRefund("2116133812000152", "jxadmin", "协商一致")
if err != nil {
t.Fatal(err.Error())
}
@@ -197,3 +197,10 @@ func TestGenerateReverseOrder(t *testing.T) {
t.Fatal(err.Error())
}
}
func TestConfirmReceiveGoods(t *testing.T) {
err := api.ConfirmReceiveGoods("2115980474000061")
if err != nil {
t.Fatal(err.Error())
}
}

View File

@@ -111,19 +111,19 @@ func TestQueryKeyWordDicInfo(t *testing.T) {
}
func TestSyncProduct(t *testing.T) {
result, err := api.SyncProduct(mustExistStoreID, "2022250244")
_, err := api.SyncProduct("11734846", "2023346662")
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(result)
result, err = api.SyncProduct("wrongstoreid", "2022250244")
if err == nil {
t.Fatal("SyncProduct should return error")
}
result, err = api.SyncProduct(mustExistStoreID, "wrongskuid")
if err == nil {
t.Fatal("SyncProduct should return error")
}
//baseapi.SugarLogger.Debug(result)
//result, err = api.SyncProduct("wrongstoreid", "2022250244")
//if err == nil {
// t.Fatal("SyncProduct should return error")
//}
//result, err = api.SyncProduct(mustExistStoreID, "wrongskuid")
//if err == nil {
// t.Fatal("SyncProduct should return error")
//}
}
func TestGetProductStatust(t *testing.T) {