5
5
"os"
6
6
"testing"
7
7
8
+ "github.com/stretchr/testify/assert"
8
9
"github.com/stretchr/testify/require"
9
10
10
11
"github.com/mxpv/podsync/pkg/model"
@@ -26,11 +27,11 @@ func TestQueryVimeoChannel(t *testing.T) {
26
27
err = builder .queryChannel (podcast )
27
28
require .NoError (t , err )
28
29
29
- require .Equal (t , "https://vimeo.com/channels/staffpicks" , podcast .ItemURL )
30
- require .Equal (t , "Vimeo Staff Picks" , podcast .Title )
31
- require .Equal (t , "Vimeo Curation" , podcast .Author )
32
- require .NotEmpty (t , podcast .Description )
33
- require .NotEmpty (t , podcast .CoverArt )
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 )
34
35
}
35
36
36
37
func TestQueryVimeoGroup (t * testing.T ) {
@@ -45,11 +46,11 @@ func TestQueryVimeoGroup(t *testing.T) {
45
46
err = builder .queryGroup (podcast )
46
47
require .NoError (t , err )
47
48
48
- require .Equal (t , "https://vimeo.com/groups/motion" , podcast .ItemURL )
49
- require .Equal (t , "Motion Graphic Artists" , podcast .Title )
50
- require .Equal (t , "Danny Garcia" , podcast .Author )
51
- require .NotEmpty (t , podcast .Description )
52
- require .NotEmpty (t , podcast .CoverArt )
49
+ assert .Equal (t , "https://vimeo.com/groups/motion" , podcast .ItemURL )
50
+ assert .Equal (t , "Motion Graphic Artists" , podcast .Title )
51
+ assert .Equal (t , "Danny Garcia" , podcast .Author )
52
+ assert .NotEmpty (t , podcast .Description )
53
+ assert .NotEmpty (t , podcast .CoverArt )
53
54
}
54
55
55
56
func TestQueryVimeoUser (t * testing.T ) {
@@ -65,9 +66,9 @@ func TestQueryVimeoUser(t *testing.T) {
65
66
require .NoError (t , err )
66
67
67
68
require .Equal (t , "https://vimeo.com/motionarray" , podcast .ItemURL )
68
- require .Equal (t , "Motion Array " , podcast .Title )
69
- require .Equal (t , "Motion Array " , podcast .Author )
70
- require .NotEmpty (t , podcast .Description )
69
+ assert .Equal (t , "Artlist Ltd " , podcast .Title )
70
+ assert .Equal (t , "Artlist Ltd " , podcast .Author )
71
+ assert .NotEmpty (t , podcast .Description )
71
72
}
72
73
73
74
func TestQueryVimeoVideos (t * testing.T ) {
0 commit comments