MCPcopy
hub / github.com/mxpv/podsync / TestQueryVimeoChannel

Function TestQueryVimeoChannel

pkg/builder/vimeo_test.go:18–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func 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
37func TestQueryVimeoGroup(t *testing.T) {
38 if vimeoKey == "" {

Callers

nothing calls this directly

Calls 2

queryChannelMethod · 0.95
NewVimeoBuilderFunction · 0.85

Tested by

no test coverage detected