From 228ceec575ed45b251d98367a05d58a3e4321934 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 24 Jan 2012 12:03:41 -0500 Subject: [PATCH] the "stamp" command by itself does not set up "starting_rev" --- tests/test_offline_environment.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(""" -- 2.47.2