from tests.root_fixture import root_fixture from datetime import datetime, timedelta fixture = { **root_fixture, "User": [ { "id": 1, "email": "dev-marketing-user-1@example.com", "external_id": "sme-dna|5cf0091d6c91d310fe6fcdc6", "name": "user-1", "is_admin": True, "phone": "+1234234", }, { "id": 2, "email": "dev-marketing-user-2@example.com", "external_id": "sme-dna|5cf0091d6c91d310fe6fcdc7", "is_admin": False, "name": "user-2", "phone": "", }, { "id": 3, "email": "dev-marketing-user-3@example.com", "external_id": "sme-dna|5cf0091d6c91d310fe6fcdc8", "name": "user-3", "phone": "", }, { "id": 4, "email": "dev-marketing-user-4@example.com", "external_id": "sme-dna|5cf0091d6c91d310fe6fcd42", "name": "user-4", "phone": "", }, ], "Artist": [ {"id": 10, "external_id": "GRAS_10", "name": "TestAtrist1", "is_sony": True}, {"id": 20, "external_id": "GRAS_20", "name": "TestArtist2", "is_sony": True}, {"id": 30, "external_id": "GRAS_30", "name": "TestArtist3", "is_sony": True}, ], "Polymorphable": [ {"id": 10, "type": "Artist"}, {"id": 20, "type": "Artist"}, {"id": 30, "type": "Artist"}, ], "ArtistTeam": [ {"id": 1, "artist_id": 30, "label_id": 1}, ], "UserLabel": [ {"user_id": 1, "label_id": 1}, {"user_id": 2, "label_id": 2}, {"user_id": 2, "label_id": 3}, {"user_id": 1, "label_id": 4}, ], "ArtistTeamUser": [ { "artist_team_id": 1, "user_id": 1, "role": 1 }, ], "Project": [ { "id": 500, "name": "test_project_1", "label_id": 1, "budget": 66666, "allocation": 66666, "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 1, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 1, "is_claimed": True, "is_deleted": False, "is_confidential": False, "initial_start_date": datetime.now() - timedelta(days=10), "end_date": datetime.now() + timedelta(days=10), "gras_title": "New Frontline Release", "gras_project_code": "12345567", "prs_title": "New Frontline Release(PRS)", "prs_project_code": "012345567", "updated_by_import_at": "2020-10-11", }, { "id": 501, "name": "test_project_2", "label_id": 1, "budget": 66666, "allocation": 66666, "created_at": "2019-07-22 16:14:35.748032", "create_user_id": 1, "updated_at": "2019-07-22 16:14:55.446196", "edit_user_id": 1, "is_deleted": False, "is_confidential": False, "is_claimed": True, "initial_start_date": datetime.now() + timedelta(days=10), "end_date": datetime.now() + timedelta(days=20), "gras_title": "New Frontline Release 2", "gras_project_code": "12345568", "prs_title": "New Frontline Release(PRS) 2", "prs_project_code": "012345568", "updated_by_import_at": "2020-10-11", }, ], "ProjectTargetItem": [ {"project_id": 500, "entity_id": 10, "entity_type": 0, "add_type": 0}, {"project_id": 501, "entity_id": 20, "entity_type": 0, "add_type": 1}, ], "UserProject": [ {"project_id": 500, "user_id": 1, "shared_by": 1, "editable": False, "role": 2}, {"project_id": 501, "user_id": 1, "shared_by": 1, "editable": False, "role": 2}, ], "Image": [ {"id": 13, "url": "http://test.com", "width": 200, "height": 250, "related_object_id": 10}, {"id": 14, "url": "http://test.com/1", "width": 200, "height": 250, "related_object_id": 10}, {"id": 16, "url": "http://test.com/3", "width": 400, "height": 250, "related_object_id": 30}, ], }