aa
This commit is contained in:
@@ -18,7 +18,7 @@ func TestShopQuery(t *testing.T) {
|
||||
// if err == nil {
|
||||
// t.Fatal("应该报错找不到门店")
|
||||
// }
|
||||
shopInfo, err := api.ShopQuery("666972")
|
||||
shopInfo, err := api.ShopQuery("667018")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -46,6 +46,18 @@ func TestShopCreate(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestShopUpdate(t *testing.T) {
|
||||
shopInfo := &ShopInfo{
|
||||
ShopID: "667018",
|
||||
ShopLng: 113015935,
|
||||
ShopLat: 25776427,
|
||||
}
|
||||
_, err := api.ShopUpdate(shopInfo)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSimulateArrange(t *testing.T) {
|
||||
err := api.SimulateArrange(123456789, "1529387562097059")
|
||||
handleError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user