Exemple #1
0
def test_delete_albums():
    #delete use 1 albums
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id=env.env_var['ALBUM_ID_1'],
                    status_code=204)
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id=env.env_var['ALBUM_ID_2'],
                    status_code=204)
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id=env.env_var['ALBUM_ID_3'],
                    status_code=204)
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id=env.env_var['ALBUM_ID_4'],
                    status_code=204)
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id=env.env_var['ALBUM_ID_5'],
                    status_code=204)
    #delete user 2 albums
    list_albums = rq_album.get_list(token=env.env_var.get("USER_2_TOKEN"),
                                    count=1)
    rq_album.delete(token=env.env_var.get("USER_2_TOKEN"),
                    album_id=list_albums[0]["album_id"],
                    status_code=204)
Exemple #2
0
def test_delete_album_study():
    rq_album.delete(token=env.env_var.get("USER_2_TOKEN"),
                    album_id=env.env_var.get("ALBUM_DESTINATION_ID"))
Exemple #3
0
def test_delete_album_not_found():
    rq_album.delete(token=env.env_var.get("USER_1_TOKEN"),
                    album_id="1",
                    status_code=404)