"""conftest""" from pytest import fixture @fixture def mock_adjustments_types(): return ['Label Earnings', 'Legal Fees', 'Admin Fees'] @fixture def mock_account_ids(): return ['68952', '72346', '74211'] @fixture def mock_contract_ids(): return ['533565', '533993', '535978'] @fixture def mock_statement_periods(): return [{ 'statement_year': 2022, 'statement_month': 6 }, { 'statement_year': 2022, 'statement_month': 7 }, { 'statement_year': 2022, 'statement_month': 8 }] @fixture def mock_upcs(): return [{ 'display_upc': '0028948106431', 'upc': '20000000137657' }, { 'display_upc': '0028948107698', 'upc': '20000000137678' }, { 'display_upc': '0028948107902', 'upc': '20000000137477' }] @fixture def mock_contract_product_terms(): return [{ 'contract_id': '533565', 'term_type': 'product', 'attachments': str(['196626383143', '192562944424']) }, { 'contract_id': '533993', 'term_type': 'product', 'attachments': str(['20000000028901']) }, { 'contract_id': '535978', 'term_type': 'product', 'attachments': str(['886445283891', '886444667999', '886444370851']) }, { 'contract_id': '535979', 'term_type': 'product', 'attachments': str(['20000000137477']) }, { 'contract_id': '535980', 'term_type': 'product', 'attachments': str(['20000000170953']) }] @fixture def mock_contract_label_terms(): return [{ 'contract_id': '533565', 'term_type': 'label', 'attachments': str(['68952']), }, { 'contract_id': '533993', 'term_type': 'label', 'attachments': str(['72346']), }, { 'contract_id': '535978', 'term_type': 'label', 'attachments': str(['74211']), }, { 'contract_id': '535980', 'term_type': 'label', 'attachments': str(['72346']), }] @fixture def mock_upc_labels(): return [{ 'vendor_id': '74211', 'upc': '20000000137103', 'display_upc': '0028948109173' }] @fixture def mock_statement_period(): return [{'statement_period_id': 1}] @fixture def mock_adjustment(): return [ '68952', '533565', '196626383143', -50, "USD", 2022, 8, 2022, 8, "Label Earnings", None, "digital" ]