def set_database(db_path, proxy, config):
    """Initialize the peewee database with the given configuration

    :param str db_path: the path of the sqlite database
    :param peewee.Proxy proxy: the peewee proxy to initialise
    :param dict config: the configuration dictionnary
    """
    if config in 'testing' and config['testing'] is True:
        database = SqliteDatabase('/tmp/results.sqlite', check_same_thread=False)
    else:
        database = SqliteDatabase(db_path, check_same_thread=False)
    proxy.initialize(database)
dataset/ETHPy150Open TheGhouls/oct/oct/results/models.py/set_database/swapped operands of `in`