relation_test.go 404 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoGetPassportDetail(t *testing.T) {
  8. convey.Convey("passport", t, func() {
  9. var mid int64 = 27515586
  10. httpMock("GET", _passportURL).Reply(200).BodyString(`{"code":0}`)
  11. res, err := d.PassportDetail(context.TODO(), mid)
  12. convey.So(err, convey.ShouldBeNil)
  13. convey.So(res, convey.ShouldBeNil)
  14. })
  15. }