(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestQueryVimeoChannel(t *testing.T) { |
| 19 | if vimeoKey == "" { |
| 20 | t.Skip("Vimeo API key is not provided") |
| 21 | } |
| 22 | |
| 23 | builder, err := NewVimeoBuilder(context.Background(), vimeoKey) |
| 24 | require.NoError(t, err) |
| 25 | |
| 26 | podcast := &model.Feed{ItemID: "staffpicks", Quality: model.QualityHigh} |
| 27 | err = builder.queryChannel(podcast) |
| 28 | require.NoError(t, err) |
| 29 | |
| 30 | assert.Equal(t, "https://vimeo.com/channels/staffpicks", podcast.ItemURL) |
| 31 | assert.Equal(t, "Vimeo Staff Picks", podcast.Title) |
| 32 | assert.Equal(t, "Vimeo Curation", podcast.Author) |
| 33 | assert.NotEmpty(t, podcast.Description) |
| 34 | assert.NotEmpty(t, podcast.CoverArt) |
| 35 | } |
| 36 | |
| 37 | func TestQueryVimeoGroup(t *testing.T) { |
| 38 | if vimeoKey == "" { |
nothing calls this directly
no test coverage detected