- mtwm category sync ok.

This commit is contained in:
gazebo
2018-11-26 17:34:14 +08:00
parent fb208a8c50
commit 875959d4b7
3 changed files with 199 additions and 40 deletions

View File

@@ -15,3 +15,25 @@ func TestSyncStoreCategory(t *testing.T) {
}
t.Log(utils.Format4Output(store, false))
}
func TestSyncLocalStoreCategory(t *testing.T) {
store, err := new(PurchaseHandler).SyncLocalStoreCategory(jxcontext.AdminCtx, nil, 100077, true, false)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(store, false))
}
func TestDeleteRemoteSkus(t *testing.T) {
err := new(PurchaseHandler).DeleteRemoteSkus(100077, nil)
if err != nil {
t.Fatal(err)
}
}
func TestDeleteRemoteCategories(t *testing.T) {
err := new(PurchaseHandler).DeleteRemoteCategories(100077, nil)
if err != nil {
t.Fatal(err)
}
}