

@pytest.fixture
def app_config(database):
    config = configure(settings={
        'warehouse.prevent_esi': True,
        'warehouse.token': 'insecure token',
        'camo.url': 'http://localhost:9000/',
        'camo.key': 'insecure key',
        'celery.broker_url': 'amqp://',
        'celery.result_url': 'redis://localhost:0/',
        'database.url': database,
        'docs.url': 'http://docs.example.com/',
        'download_stats.url': 'redis://localhost:0/',
        'elasticsearch.url': 'https://localhost/warehouse',
        'files.backend': 'warehouse.packaging.services.LocalFileStorage',
        'sessions.secret': '123456',
        'sessions.url': 'redis://localhost:0/',
    })
    alembic.command.upgrade(config.alembic_config(), 'head')
    return config

dataset/ETHPy150Open pypa/warehouse/tests/conftest.py app_config/original