A lot of work with albums and photos, still working but want to save working tests/methods
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
6436478402
commit
194f0acb28
79 changed files with 1028 additions and 23 deletions
|
@ -5,8 +5,23 @@ import (
|
|||
"path"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/kris-nova/client-go/api/v1"
|
||||
)
|
||||
|
||||
//TODO Test GetPhotos()
|
||||
|
||||
func TestHappyGetPhotos(t *testing.T) {
|
||||
_, err := Client.V1().GetPhotos(&api.PhotoOptions{
|
||||
Count: 1,
|
||||
AlbumUID: WellKnownAlbumID,
|
||||
})
|
||||
if err != nil {
|
||||
t.Errorf("expected success getting well known photo: %v", err)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
func TestHappyGetPhoto(t *testing.T) {
|
||||
_, err := Client.V1().GetPhoto(WellKnownPhotoID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue