"""Test Configs.""" from types import SimpleNamespace import pytest @pytest.fixture def mock_accounting_period_mechanicals_event(): """Mock accounting period mechanicals event.""" return { 'abacus_event_id': 1, 'event_date': '2020-07-17 18:57:21.590679', 'event_name': 'accounting_period_mechanicals', 'statement_period_id': 123, 'target_id': 1024, 'target_type': 'accounting_period', 'user_id': '1', 'user_type': 'orchard-suite' } @pytest.fixture def mock_accounting_period_mechanicals_dag_run( mock_accounting_period_mechanicals_event ): """Mock accounting period mechanicals dag run passed between DAG tasks.""" return SimpleNamespace( conf=mock_accounting_period_mechanicals_event) @pytest.fixture() def mock_ows_accounting_period(): """Test getting accounting period details.""" mock_accounting_period = { 'accounting_period_id': 1024, 'accounting_period_name': 'Mock Period 1', 'accounting_period_status': 'locked' } return mock_accounting_period