def test_destination_rev_post_context_multihead(self): d, e, f = multi_heads_fixture(self.cfg, a, b, c) env_file_fixture(""" context.configure(dialect_name='sqlite') assert set(context.get_revision_argument()) == set(('%s', '%s', '%s', )) """ % (f, e, c)) command.upgrade(self.cfg, 'heads', sql=True)
def test_head_rev_pre_context_multihead(self): d, e, f = multi_heads_fixture(self.cfg, a, b, c) env_file_fixture(""" assert set(context.get_head_revisions()) == set(('%s', '%s', '%s', )) """ % (e, f, c)) command.upgrade(self.cfg, e, sql=True) command.downgrade(self.cfg, "%s:%s" % (e, b), sql=True) command.stamp(self.cfg, c, sql=True) command.current(self.cfg)
def test_destination_rev_pre_context_multihead(self): d, e, f = multi_heads_fixture(self.cfg, a, b, c) env_file_fixture( """ assert set(context.get_revision_argument()) == set(('%s', '%s', '%s', )) """ % (f, e, c) ) command.upgrade(self.cfg, "heads", sql=True)
def setUp(self): self.env = staging_env() # self.cfg = cfg = _no_sql_testing_config() self.cfg = cfg = _sqlite_testing_config() # cfg.set_main_option("dialect_name", "sqlite") # cfg.remove_main_option("url") self.a, self.b, self.c = three_rev_fixture(cfg) self.d, self.e, self.f = multi_heads_fixture(cfg, self.a, self.b, self.c)
def test_head_rev_pre_context_multihead(self): d, e, f = multi_heads_fixture(self.cfg, a, b, c) env_file_fixture( """ assert set(context.get_head_revisions()) == set(('%s', '%s', '%s', )) """ % (e, f, c) ) command.upgrade(self.cfg, e, sql=True) command.downgrade(self.cfg, "%s:%s" % (e, b), sql=True) command.stamp(self.cfg, c, sql=True) command.current(self.cfg)