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

Function TestQueryVimeoUser

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

Source from the content-addressed store, hash-verified

54}
55
56func 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
74func TestQueryVimeoVideos(t *testing.T) {
75 if vimeoKey == "" {

Callers

nothing calls this directly

Calls 2

queryUserMethod · 0.95
NewVimeoBuilderFunction · 0.85

Tested by

no test coverage detected