"""conftest.""" from pytest import fixture @fixture def mock_event(): """Mock abacus event.""" return { 'abacus_event_id': 1, 'target_type': 'statement_period_adjustment_file', 'target_id': '1', 'event_name': 'generate_flowthrough_adjustments', 'event_date': '2026-02-13T11:20:35.45+01:00', 'statement_period_id': 1, } @fixture def mock_statement_period(): """Mock statement period.""" return { 'statement_period_id': 325, 'statement_period_name': 'January 2026', 'statement_period_status': 'current', 'statement_month': 1, 'statement_year': 2026, 'closed_date': None, 'exchange_rates_delivered': None, } @fixture def mock_statement_period_adjustment_file(): """Mock statement period adjustment file.""" return { 'file_name': 'flowthrough_adjustments_file', 'valid_file_location': 's3://test/5011/flowthrough_adjustments_file.json.gz', 'invalid_file_location': None, 'valid_row_count': 3, 'invalid_row_count': 0, 'total_file_amount_multicurrency': '-211.000000000000', 'total_rounded_amount_multicurrency': '-211.00', 'md5sum': None, 'error_type': None, 'source_file_upload_id': None, 'statement_period_adjustment_file_id': 1, 'statement_period_id': 1, } @fixture def mock_abacus_states(): """Mock abacus states.""" return [ { 'abacus_state_id': 708751, 'parent_table_id': 5089, 'parent_table_name': 'statement_period_adjustment_file', 'action_name': 'upload_file', 'action_status': 'init', 'message': None, 'created_by': 'Test User', 'created_at': '2026-03-18T08:19:39.000000', 'last_modified_by': 'Test User', 'last_modified': '2026-03-18T08:19:39.000000', } ]