album_test.go 349 B

123456789101112131415161718
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_AlbumIndex(t *testing.T) {
  8. Convey("test album index", t, WithService(func(s *Service) {
  9. mid := int64(883968)
  10. ps := 10
  11. data, err := s.AlbumIndex(context.Background(), mid, ps)
  12. So(err, ShouldBeNil)
  13. Printf("%+v", data)
  14. }))
  15. }