(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestQueryVimeoUser(t *testing.T) { |
| 57 | if vimeoKey == "" { |
| 58 | t.Skip("Vimeo API key is not provided") |
| 59 | } |
| 60 | |
| 61 | builder, err := NewVimeoBuilder(context.Background(), vimeoKey) |
| 62 | require.NoError(t, err) |
| 63 | |
| 64 | podcast := &model.Feed{ItemID: "motionarray", Quality: model.QualityHigh} |
| 65 | err = builder.queryUser(podcast) |
| 66 | require.NoError(t, err) |
| 67 | |
| 68 | require.Equal(t, "https://vimeo.com/motionarray", podcast.ItemURL) |
| 69 | assert.NotEmpty(t, podcast.Title) |
| 70 | assert.NotEmpty(t, podcast.Author) |
| 71 | assert.NotEmpty(t, podcast.Description) |
| 72 | } |
| 73 | |
| 74 | func TestQueryVimeoVideos(t *testing.T) { |
| 75 | if vimeoKey == "" { |
nothing calls this directly
no test coverage detected