def test_variable_from_db(self, execute_task, manager):
    with Session() as session:
        s = Variables(variables={'test_variable_db': True})
        session.add(s)
    fire_event('manager.before_config_validate', manager.config, manager)
    task = execute_task('test_variable_from_db')
    assert (len(task.accepted) == 1)
def test_variable_from_db(self, execute_task, manager):
    with Session() as session:
        s = Variables(variables={'test_variable_db': True})
        session.add(s)
    fire_event('manager.before_config_validate', manager.config, manager)
    task = execute_task('test_variable_from_db')
    assert (len(task.accepted) == 1)