

@pytest.fixture
def expired_throttle_history(storage, expired_timestamps):

    def _services_dict(limit):
        sd = {
            
        }
        for s in SQLite.SERVICES:
            sd[s] = ('green', limit)
        return sd
    limits = (1000, 2000)
    for limit in limits:
        snapshot = make_throttle_snapshot('idle', _services_dict(limit))
        storage.update(make_header(snapshot.as_header()))
    sql = 'UPDATE throttle_history SET timestamp=? WHERE images_limit=?'
    for param in zip(storage, limits):
        storage.db.execute(sql, param)
    return storage

dataset/ETHPy150Open 55minutes/python-epo-ops-client/tests/middlewares/throttle/conftest.py expired_throttle_history/VarMisuse@109/154 `expired_timestamps`->`storage`