From 085edc240f41bcec8167e4a7b3397a1b99ce47d3 Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Wed, 24 Aug 2022 18:41:50 -0400 Subject: [PATCH] Update track indexing integration tests --- .../integration_tests/tasks/test_index_operations.py | 2 ++ .../integration_tests/tasks/test_index_tracks.py | 4 ++++ discovery-provider/src/tasks/metadata.py | 2 ++ 3 files changed, 8 insertions(+) diff --git a/discovery-provider/integration_tests/tasks/test_index_operations.py b/discovery-provider/integration_tests/tasks/test_index_operations.py index 31c6fe38e20..5c5f4114d01 100644 --- a/discovery-provider/integration_tests/tasks/test_index_operations.py +++ b/discovery-provider/integration_tests/tasks/test_index_operations.py @@ -105,6 +105,8 @@ def seed_contract_data(task, contracts, web3): "release_date": str(chance.date()), "file_type": "mp3", "track_segments": test_track_segments, + "is_premium": False, + "premium_conditions": None, } # dump metadata to file diff --git a/discovery-provider/integration_tests/tasks/test_index_tracks.py b/discovery-provider/integration_tests/tasks/test_index_tracks.py index b07a4a994d3..79fdf523b5a 100644 --- a/discovery-provider/integration_tests/tasks/test_index_tracks.py +++ b/discovery-provider/integration_tests/tasks/test_index_tracks.py @@ -138,6 +138,8 @@ def get_delete_track_event(): }, "track_id": 77955, "stem_of": None, + "is_premium": False, + "premium_conditions": None, }, multihash2: { "owner_id": 1, @@ -185,6 +187,8 @@ def get_delete_track_event(): }, "track_id": 77955, "stem_of": None, + "is_premium": False, + "premium_conditions": None, }, } ) diff --git a/discovery-provider/src/tasks/metadata.py b/discovery-provider/src/tasks/metadata.py index 2470f7225f8..1ce769cc934 100644 --- a/discovery-provider/src/tasks/metadata.py +++ b/discovery-provider/src/tasks/metadata.py @@ -26,6 +26,8 @@ "is_unlisted": False, "field_visibility": None, "stem_of": None, + "is_premium": False, + "premium_conditions": None, } # Required format for user metadata retrieved from IPFS