@pytest.fixture
def generate_sample_throttle_snapshot_reprs(throttle_snapshot):
    sample_path = os.path.join(
        os.path.dirname(os.path.abspath(__file__)), 'sample'
    )
    makedirs(sample_path)
    fheader = os.path.join(sample_path, 'throttle_snapshot.header')
    fdict = os.path.join(sample_path, 'throttle_snapshot.dict')
    with open(fheader, 'wb+', encoding='utf-8') as of:
        of.write(throttle_snapshot.as_header())
    with open(fdict, 'wb+', encoding='utf-8') as of:
        of.write(pformat(throttle_snapshot.as_dict()))
Apply extra defaults to the language settings.
dataset/ETHPy150Open 55minutes/python-epo-ops-client/tests/middlewares/throttle/conftest.py/generate_sample_throttle_snapshot_reprs--crossover with--dataset/ETHPy150Open edoburu/django-parler/parler/utils/conf.py/add_default_language_settings