From: Mike Bayer Date: Tue, 24 Jan 2012 17:03:41 +0000 (-0500) Subject: the "stamp" command by itself does not set up "starting_rev" X-Git-Tag: rel_0_2_0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228ceec575ed45b251d98367a05d58a3e4321934;p=thirdparty%2Fsqlalchemy%2Falembic.git the "stamp" command by itself does not set up "starting_rev" --- diff --git a/tests/test_offline_environment.py b/tests/test_offline_environment.py index e8f13f88..813fb2e3 100644 --- a/tests/test_offline_environment.py +++ b/tests/test_offline_environment.py @@ -48,7 +48,15 @@ assert context.get_starting_revision_argument() == 'x' """) command.upgrade(self.cfg, "x:y", sql=True) command.downgrade(self.cfg, "x:y", sql=True) - command.stamp(self.cfg, a) + + def test_starting_rev_pre_context_stamp(self): + env_file_fixture(""" +assert context.get_starting_revision_argument() == 'x' +""") + assert_raises_message( + util.CommandError, + "No starting revision argument is available.", + command.stamp, self.cfg, a) def test_starting_rev_current_pre_context(self): env_file_fixture("""