a
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user