"""Shared pytest fixtures.""" import json import pytest @pytest.fixture def mock_event(): """Sample lambda event.""" with open('tests/sample_event.json') as f: return json.load(f) @pytest.fixture def mock_processed_event(): """Sample proccessed event.""" with open('tests/sample_processed_event.json') as f: return json.load(f) @pytest.fixture def mock_event_voucherify(): """Sample lambda event.""" with open('tests/sample_event_voucherify.json') as f: return json.load(f) @pytest.fixture def mock_processed_event_voucherify(): """Sample proccessed event.""" with open('tests/sample_processed_event_voucherify.json') as f: return json.load(f)