@pytest.fixture(scope="function",
                params=["test.db",
                pytest.mark.mysqltest(pytest.config.option.mysql)])
def db(request):
    param = request.param
    def clean():
        # the global session needs to be closed to use the engine
        session = jip.db.create_session()
        session.close()
        engine = jip.db.engine
        engine.execute(jip.db.InputFile.__table__.delete())
        engine.execute(jip.db.OutputFile.__table__.delete())
        engine.execute(jip.db.job_dependencies.delete())
        engine.execute(jip.db.job_groups.delete())
        engine.execute(jip.db.job_pipes.delete())
        engine.execute(jip.db.Job.__table__.delete())
        engine.execute('ALTER TABLE jobs AUTO_INCREMENT = 1')
    if param in 'mysql':
        request.addfinalizer(clean)
    return param
dataset/ETHPy150Open thasso/pyjip/test/test_db.py/db/swapped operands of `in`