"""Pytest config.""" import json import os import typing import pytest SAMPLE_EVENT_PATH = os.path.join( os.path.dirname(__file__), 'sample_events/sample_event.json' ) def pytest_configure(config: pytest.Config) -> None: config.addinivalue_line( 'markers', 'real_rate_limit: opt out of the autouse rate-limit stub and ' 'exercise the real pyrate-limiter wiring', ) @pytest.fixture() def sample_event() -> typing.Dict[str, typing.Any]: """Sample event fixture.""" with open(SAMPLE_EVENT_PATH, 'r') as f: sample: typing.Dict[str, typing.Any] = json.load(f) return sample