def step_impl(context): cur = context.conn.cursor() assert _is_initialized(cur), 'Non-empty db should be initialized'
def step_impl(context): cur = context.conn.cursor() assert not _is_initialized(cur), 'Database should be uninitialized'
def step_impl(context): class Config: cursor = context.conn.cursor() table_name = "schema_version" assert not _is_initialized(Config), 'Database should be uninitialized'
def step_impl(context): class Config: cursor = context.conn.cursor() table_name = "schema_version" assert _is_initialized(Config), 'Non-empty db should be initialized'
def step_impl(context, schema='public'): cur = context.conn.cursor() assert not _is_initialized(schema, cur), 'Database should be uninitialized'
def step_impl(context, schema='public'): cur = context.conn.cursor() assert _is_initialized(schema, cur), 'Non-empty db should be initialized'