def step_impl(context, baseline): context.cursor = context.conn.cursor() context.base_dir = context.migr_dir context.target = 1 context.pattern = DEFAULT_MIGRATION_RE info = _get_info(context, baseline) assert list(info.values())[0]['version'] == int(baseline) assert list(info.values())[0]['description'] == 'Forced baseline'
def step_impl(context): context.cursor = context.conn.cursor() context.base_dir = context.migr_dir context.target = 1 context.pattern = DEFAULT_MIGRATION_RE info = _get_info(context, 0) assert list(info.values())[0]['version'] == 1 assert list(info.values())[0]['description'] == 'Single migration'
def step_impl(context): class Config: cursor = context.conn.cursor() baseline = 0 base_dir = context.migr_dir target = 1 info = _get_info(Config) assert list(info.values())[0]['version'] == 1 assert list(info.values())[0]['description'] == 'Single migration'
def step_impl(context, baseline): class Config: cursor = context.conn.cursor() baseline = 0 base_dir = context.migr_dir target = 1 info = _get_info(Config) assert list(info.values())[0]['version'] == int(baseline) assert list(info.values())[0]['description'] == 'Forced baseline'
def step_impl(context, baseline): cur = context.conn.cursor() info = _get_info(context.migr_dir, 0, 1, cur, schema='public') assert list(info.values())[0]['version'] == int(baseline) assert list(info.values())[0]['description'] == 'Forced baseline'
def step_impl(context): cur = context.conn.cursor() info = _get_info(context.migr_dir, 0, 1, cur, schema='public') assert list(info.values())[0]['version'] == 1 assert list(info.values())[0]['description'] == 'Single migration'