"""Seed data for reports.""" from datetime import datetime from decimal import Decimal report_seed_data = [ { "user_type_id": "24601L", "number": Decimal(42), "requested_datetime": "2019-04-15", }, { "user_type_id": "24601L", "number": Decimal(666), "requested_datetime": "2019-04-16", }, { "user_type_id": "24601L", "number": Decimal(1), "requested_datetime": "2019-04-17", }, ] report_seed_data_rds = [ { "id": 1, "report_run_id": 1, "report_run_uuid": "abcd-1234", "report_run_name": "Test Run", "collaborator_id": 1, "vendor_id": 24601, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test.xls", "file_format": "xls", "file_location": "s3://test.xls", "amount": Decimal(1234), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "transaction_id": 2, "deleted_datetime": None, "collaborator_dp_enabled": False, }, { "id": 2, "report_run_id": 2, "report_run_uuid": "1234-abcd", "report_run_name": "Test Run 2", "collaborator_id": 2, "vendor_id": 24601, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test2.xls", "file_format": "xls", "file_location": None, "amount": None, "currency": None, "status": "REQUESTED", "requested_datetime": datetime(2019, 10, 9, 8, 7, 6), "generated_datetime": None, "deleted_datetime": None, "collaborator_dp_enabled": False, }, { "id": 3, "report_run_id": 3, "report_run_uuid": "1234-abcd-5678", "report_run_name": "Test Run 3", "collaborator_id": 3, "vendor_id": 12345, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test3.xls", "file_format": "xls", "file_location": None, "amount": None, "currency": None, "status": "ERROR", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": None, "deleted_datetime": None, "collaborator_dp_enabled": False, }, { "id": 4, "report_run_id": 4, "report_run_uuid": "dcba-1234", "report_run_name": "Another Test Run", "collaborator_id": 3, "vendor_id": 12345, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test4.xls", "file_format": "xls", "file_location": "s3://test4.xls", "amount": Decimal(9001), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 10, 9, 8, 7, 6), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "deleted_datetime": None, "collaborator_dp_enabled": False, }, { "id": 5, "report_run_id": 1, "report_run_uuid": "abcd-1234", "report_run_name": "Test Run (soft-deleted)", "collaborator_id": 1, "vendor_id": 24601, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test.xls", "file_format": "xls", "file_location": "s3://test.xls", "amount": Decimal(1234), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "deleted_datetime": datetime(2022, 3, 2, 8, 7, 6), "collaborator_dp_enabled": False, }, { "id": 6, "report_run_id": 1, "report_run_uuid": "abcd-1234", "report_run_name": "Test Run", "collaborator_id": 10, "vendor_id": 120594, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test.xls", "file_format": "xls", "file_location": "s3://test.xls", "amount": Decimal(1234), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "deleted_datetime": None, "transaction_id": 2, "collaborator_dp_enabled": True, }, { "id": 7, "report_run_id": 1, "report_run_uuid": "abcd-1234", "report_run_name": "Test Run", "collaborator_id": 10, "vendor_id": 120594, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test.xls", "file_format": "xls", "file_location": "s3://test.xls", "amount": Decimal(1234), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "deleted_datetime": None, "collaborator_dp_enabled": True, }, { "id": 8, "report_run_id": 1, "report_run_uuid": "abcd-1234", "report_run_name": "Test Run", "collaborator_id": 10, "vendor_id": 120594, "subaccount_id": None, "period_ids": "1,2,3", "period_name": "Sometime", "exclude_transaction_types": None, "filename": "test.xls", "file_format": "xls", "file_location": "s3://test.xls", "amount": Decimal(1234), "currency": "NOK", "status": "GENERATED", "requested_datetime": datetime(2019, 9, 8, 7, 6, 5), "generated_datetime": datetime(2019, 10, 9, 8, 7, 6), "deleted_datetime": None, "collaborator_dp_enabled": True, }, ]