"""Global test configuration and set of fixtures.""" from unittest.mock import Mock import pytest @pytest.fixture def flow_mock(): """Flow object fixture.""" flow = Mock( flow_domain='flow_domain', flow_name='flow_name', flow_version='flow_version') flow.workflow_id_mock = 'test_workflow_id' flow.workflow_id.return_value = flow.workflow_id_mock return flow @pytest.fixture def mock_view_config(): """Mock config.""" return { 'view_one': {}, 'view_two': {}} @pytest.fixture def mock_activity(): """Mock activity.""" return Mock() @pytest.fixture def mock_schedule(): """Mock schedule.""" return Mock() @pytest.fixture def mock_context(): """Mock context.""" return {'name': 'test-view'}