Skip to content

Commit

Permalink
Add test to ensure updating playlist_id fails (#8736)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jun 5, 2024
1 parent e334fc3 commit f6e2f33
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,16 @@ def test_index_invalid_playlists(app, mocker):
"CreatePlaylistInvalidTracks": {
"playlist_contents": {"track_ids": [{"track": 1}]}
},
"UpdatePlaylistInvalidPlaylistId": {"playlist_id": 1234},
}
private_metadata = json.dumps(test_metadata["UpdatePlaylistInvalidPrivate"])
album_metadata = json.dumps(test_metadata["UpdatePlaylistInvalidAlbum"])
invalid_release_date_metadata = json.dumps(
test_metadata["UpdatePlaylistInvalidReleaseDate"]
)
invalid_playlist_id_metadata = json.dumps(
test_metadata["UpdatePlaylistInvalidPlaylistId"]
)
playlist_metadata = json.dumps(test_metadata["CreatePlaylistInvalidTracks"])

tx_receipts = {
Expand Down Expand Up @@ -928,6 +932,20 @@ def test_index_invalid_playlists(app, mocker):
)
},
],
"UpdatePlaylistInvalidPlaylistId": [
{
"args": AttributeDict(
{
"_entityId": PLAYLIST_ID_OFFSET,
"_entityType": "Playlist",
"_userId": 1,
"_action": "Update",
"_metadata": f'{{"cid": "UpdatePlaylistInvalidPlaylistId", "data": {invalid_playlist_id_metadata}}}',
"_signer": "user1wallet",
}
)
},
],
}

entity_manager_txs = [
Expand Down

0 comments on commit f6e2f33

Please sign in to comment.