"""Test configs for accounting_period_close task unit tests.""" from types import SimpleNamespace import pytest @pytest.fixture def mock_accounting_period_close_event(): """Mock abacus event that would be passed between DAG tasks.""" return { 'abacus_event_id': 1, 'event_date': '2025-01-01 18:57:21.590679', 'event_name': 'accounting_period_close', 'target_id': 333, 'target_type': 'accounting_period', 'user_id': '1', 'user_type': 'orchard-suite' } @pytest.fixture def mock_accounting_period_close_dag_run(mock_accounting_period_close_event): """Mock accounting period close DAG run passed between DAG tasks.""" return SimpleNamespace(conf=mock_accounting_period_close_event)