コード例 #1
0
def test_albums_have_title_and_id():
    provider = FlickrProvider(user_id='11830608@N05')

    albums = provider.load_albums()
    for album in albums:
        assert album.identifier
        assert album.title
        assert album.url
コード例 #2
0
def test_albums_can_load_their_photos():
    provider = FlickrProvider(user_id='11830608@N05')

    albums = provider.load_albums()

    for album in albums:
        provider.load_photos(album=album)

        for photo in album.photos:
            assert photo.title
            assert photo.url
            assert photo.thumbnail
コード例 #3
0
def test_should_load_albums():
    provider = FlickrProvider(user_id='11830608@N05')
    albums = provider.load_albums()
    assert albums