This commit is contained in:
苏尹岚
2021-02-23 16:07:46 +08:00
parent e3ff21f49e
commit e106a982a1
5 changed files with 101 additions and 14 deletions

View File

@@ -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)