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,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) {