示例#1
0
def step_impl(context):
    cur = context.conn.cursor()
    assert _is_initialized(cur), 'Non-empty db should be initialized'
示例#2
0
def step_impl(context):
    cur = context.conn.cursor()
    assert not _is_initialized(cur), 'Database should be uninitialized'
示例#3
0
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'
示例#5
0
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'