from tests.root_fixture import root_fixture fixture = { **root_fixture, "User": [ { "id": 10, "email": "dev-marketing-user-1@example.com", "external_id": "sme-dna|5cf0091d6c91d310fe6fcdc6", "name": "dev-marketing-user-1", "phone": "18156567589", }, { "id": 2, "email": "dev-marketing-user-2@example.com", "external_id": "sme-dna|3po0091d6c91ty670fe6ftryf", "name": "dev-marketing-user-2", "phone": "67589838844", }, { "id": 3, "email": "dev-marketing-user-3@example.com", "external_id": "sme-dna|9op0091d6cuhjp30fe6ffth34", "name": "dev-marketing-user-3", "phone": "09876445666", }, { "id": 4, "email": "dev-marketing-user-4@example.com", "external_id": "sme-dna|4rr0091d6cuhjp30fe6opth00", "name": "dev-marketing-user-4", "phone": "09976447888", }, { "id": 5, "email": "dev-marketing-user-5@example.com", "external_id": "sme-dna|1mk0091d6cuhjp30fe6optiii", "name": "dev-marketing-user-5", "phone": "09176447546", }, { "id": 6, "email": "dev-marketing-user-6@example.com", "external_id": "sme-dna|phn0091d6cuhjp30fe6opttml", "name": "dev-marketing-user-6", "phone": "09179947668", }, ], "UserProject": [ {"project_id": 500, "user_id": 5, "shared_by": 10, "editable": True, "role": 1}, {"project_id": 500, "user_id": 4, "shared_by": 10, "editable": True, "role": 1, "id": 100}, {"project_id": 500, "user_id": 6, "shared_by": 10, "editable": True, "role": 3}, {"project_id": 500, "user_id": 10, "shared_by": 10, "editable": False, "role": 1}, {"project_id": 501, "user_id": 10, "shared_by": 10, "editable": False, "role": 1}, {"project_id": 502, "user_id": 2, "shared_by": 10, "editable": False, "role": 3}, {"project_id": 502, "user_id": 6, "shared_by": 10, "editable": True, "role": 1}, {"project_id": 502, "user_id": 10, "shared_by": 10, "editable": False, "role": 1}, {"project_id": 503, "user_id": 2, "shared_by": 10, "editable": False, "role": 1}, {"project_id": 504, "user_id": 10, "shared_by": 10, "editable": False, "role": 1}, ], "UserProjectCampaignTypeGroup": [{"user_project_id": 100, "campaign_type_group_id": 1}], "Project": [ { "id": 500, "name": "test_project_1", "label_id": 4, "budget": 1402.41, "allocation": 1000.0, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 10, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 10, "gras_title": "New Frontline Release", "gras_project_code": "GRAS_101", "prs_title": "DJ GRAS feat. 101 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "prs_project_code": 29713, }, { "id": 501, "name": "test_project_2", "label_id": 4, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 10, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 10, "is_deleted": True, "budget": 45678.41, "allocation": 87654.0, "prs_project_code": 29714, "gras_title": "DJ GRAS feat. 102 id", "prs_title": "DJ GRAS feat. 102 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "gras_project_code": "GRAS_102", }, { "id": 502, "name": "test_project_3", "label_id": 4, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 10, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 10, "notes": "Some notes", "gras_project_code": "GRAS_100", "gras_title": "DJ GRAS feat. 100 id", "prs_title": "DJ GRAS feat. 100 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "budget": 31402.41, "allocation": 9000.0, "prs_project_code": 29712, }, { "id": 503, "name": "test_project_3", "label_id": 6, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 10, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 10, "gras_project_code": "GRAS_103", "gras_title": "DJ GRAS feat. 103 id", "prs_title": "DJ GRAS feat. 103 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "budget": 31402.41, "allocation": 12000.0, "prs_project_code": 29715, }, { "id": 504, "name": "test_project_3", "label_id": 1, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2020-07-24 16:14:35.748032", "create_user_id": 10, "updated_at": "2020-07-24 16:14:55.446196", "edit_user_id": 10, "gras_project_code": "GRAS_104", "gras_title": "DJ GRAS feat. 104 id", "prs_title": "DJ GRAS feat. 104 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "budget": 31402.41, "allocation": 12000.0, "prs_project_code": 29716, }, { "id": 506, "name": "test_project_6", "label_id": 6, "is_claimed": True, "end_date": "2020-10-11", "created_at": "2020-07-24 16:14:35.748032", "create_user_id": 10, "updated_at": "2020-07-24 16:14:55.446196", "edit_user_id": 10, "gras_project_code": "GRAS_104", "gras_title": "DJ GRAS feat. 104 id", "prs_title": "DJ GRAS feat. 104 id from PRS", "updated_by_import_at": "2021-02-22 16:14:35.748032", "initial_start_date": "2020-02-03", "budget": 31402.41, "allocation": 12000.0, "prs_project_code": 29717, }, ], "MediaPlan": [ {"id": 42, "name": "Untitled", "order": 0, "project_id": 500}, {"id": 43, "name": "Untitled", "order": 0, "project_id": 501}, {"id": 44, "name": "Untitled", "order": 0, "project_id": 502}, {"id": 45, "name": "Untitled", "order": 0, "project_id": 503}, {"id": 46, "name": "Untitled", "order": 0, "project_id": 504}, ], "MediaPlanPhase": [ {"id": 450, "name": "Phase For Test", "media_plan_id": 42, "order": 1}, {"id": 550, "name": "Phase For Test [Empty]", "media_plan_id": 43, "order": 1}, {"id": 555, "name": "Phase For Test [All Deleted]", "media_plan_id": 44, "order": 1}, {"id": 600, "name": "Phase For Test [All Deleted]", "media_plan_id": 45, "order": 1}, {"id": 655, "name": "Phase For Test [All Deleted]", "media_plan_id": 46, "order": 1}, ], "Label": [ { "id": 1, "name": "Columbia Records", "rep_owner_key": "123456", "external_name": "Columbia Records", "child_rep_owner_keys": "{}", }, { "id": 2, "name": "Epic Records", "rep_owner_key": "223456", "external_name": "Epic Records", "child_rep_owner_keys": "{}", }, { "id": 3, "name": "RCA Records", "rep_owner_key": "323456", "external_name": "RCA Records", "child_rep_owner_keys": "{}", }, {"id": 4, "name": "CMG", "rep_owner_key": "423456", "external_name": "CMG", "child_rep_owner_keys": "{}"}, { "id": 5, "name": "Nashville", "rep_owner_key": "523456", "external_name": "Nashville", "child_rep_owner_keys": "{}", }, {"id": 6, "name": "Nash", "rep_owner_key": "623456", "external_name": "Nash", "child_rep_owner_keys": "{}"}, ], "ArtistTeam": [ {"artist_id": 30, "label_id": 1}, {"artist_id": 10, "label_id": 3}, {"id": 60, "artist_id": 30, "label_id": 6} ], "ArtistTeamUser": [ { "artist_team_id": 1, "user_id": 2, "role": 1, }, { "artist_team_id": 60, "user_id": 2, "role": 1, }, ], "UserLabel": [ {"user_id": 10, "label_id": 1}, {"user_id": 10, "label_id": 2}, {"user_id": 10, "label_id": 3}, {"user_id": 10, "label_id": 4}, {"user_id": 10, "label_id": 5}, {"user_id": 5, "label_id": 4}, {"user_id": 2, "label_id": 6}, {"user_id": 2, "label_id": 4}, ], "TerritoryType": [{"id": 1, "name": "Global type"}], "Territory": [{"id": 1, "name": "Ukraine", "code": "UA", "territory_type_id": 1}], "ProjectTargetItem": [ {"project_id": 500, "entity_id": 70, "entity_type": 3}, {"project_id": 500, "entity_id": 80, "entity_type": 3}, {"project_id": 500, "entity_id": 90, "entity_type": 3}, {"project_id": 500, "entity_id": 100, "entity_type": 3}, {"project_id": 501, "entity_id": 10, "entity_type": 0}, {"project_id": 502, "entity_id": 20, "entity_type": 0, "add_type": 2}, {"project_id": 502, "entity_id": 30, "entity_type": 0}, {"project_id": 502, "entity_id": 40, "entity_type": 0}, {"project_id": 503, "entity_id": 60, "entity_type": 0}, {"project_id": 504, "entity_id": 30, "entity_type": 0, "add_type": 2}, {"project_id": 506, "entity_id": 30, "entity_type": 0, "add_type": 2}, ], "Artist": [ {"id": 10, "external_id": "GRAS_123421", "name": "TestAtrist", "is_sony": True}, {"id": 20, "external_id": "GRAS_1234212", "name": "TestingUpdate", "is_sony": True}, {"id": 30, "external_id": "GRAS_1234213", "name": "artist2", "is_sony": True}, {"id": 40, "external_id": "GRAS_1234214", "name": "artist01", "is_sony": True}, {"id": 50, "external_id": "GRAS_1234215", "name": "UpdateArtist", "is_sony": True}, {"id": 60, "external_id": "GRAS_1234216", "name": "artist2e", "is_sony": True}, {"id": 130, "external_id": "GRAS_2030", "name": "Petruccho", "is_sony": True}, ], "Polymorphable": [ {"id": 10, "type": "Artist"}, {"id": 20, "type": "Artist"}, {"id": 30, "type": "Artist"}, {"id": 40, "type": "Artist"}, {"id": 50, "type": "Artist"}, {"id": 60, "type": "Artist"}, {"id": 70, "type": "Playlist"}, {"id": 80, "type": "Playlist"}, {"id": 90, "type": "Playlist"}, {"id": 100, "type": "Playlist"}, {"id": 110, "type": "Playlist"}, {"id": 120, "type": "Playlist"}, {"id": 130, "type": "Artist"}, ], "Playlist": [ {"id": 70, "external_id": "01", "name": "TestAtrist", "owner_name": "Owner1", "provider": "spotify"}, {"id": 80, "external_id": "02", "name": "TestingUpdate", "owner_name": "Owner1", "provider": "spotify"}, {"id": 90, "external_id": "03", "name": "artist2", "owner_name": "Owner1", "provider": "spotify"}, {"id": 100, "external_id": "04", "name": "artist01", "owner_name": "Owner3", "provider": "apple"}, {"id": 110, "external_id": "05", "name": "UpdateArtist", "owner_name": "Owner2", "provider": "apple"}, {"id": 120, "external_id": "06", "name": "artist2e", "owner_name": "Owner1", "provider": "spotify"}, ], "Image": [ {"id": 13, "url": "http://test.com", "width": 200, "height": 250, "related_object_id": 70}, {"id": 14, "url": "http://test.com/1", "width": 200, "height": 250, "related_object_id": 70}, {"id": 15, "url": "http://test.com/2", "width": 300, "height": 250, "related_object_id": 20}, {"id": 16, "url": "http://test.com/3", "width": 400, "height": 250, "related_object_id": 50}, {"id": 17, "url": "http://test.com/4", "width": 400, "height": 250, "related_object_id": 130}, {"id": 18, "url": "http://test.com/5", "width": 400, "height": 250, "related_object_id": 130}, ], "ProjectHistoryItem": [ {"project_id": 500, "created_at": "2019-01-01 00:00:00", "user_id": 10, "action_id": 1}, {"project_id": 501, "created_at": "2019-01-01 00:00:01", "user_id": 10, "action_id": 1}, {"project_id": 502, "created_at": "2019-01-01 00:00:02", "user_id": 10, "action_id": 1}, ], }