Merge "Remove comments for unstaged/uncommitted tests"

This commit is contained in:
Zuul 2021-03-03 00:46:34 +00:00 committed by Gerrit Code Review
commit 281af6b879

View File

@ -226,8 +226,6 @@ class GitReviewTestCase(tests.BaseGitReviewTestCase):
"""Test message displayed when unstaged changes are present."""
self._run_git_review('-s')
self._run_git('checkout', '-b', 'test_branch')
# By not passing a filename, we rely on an edit to a preprovisioned
# tracked default file, which will be unstaged
self._unstaged_change(change_text='simple message')
exc = self.assertRaises(Exception, self._run_git_review)
self.assertIn("You have unstaged changes. Please", exc.args[0])
@ -236,8 +234,6 @@ class GitReviewTestCase(tests.BaseGitReviewTestCase):
"""Test message displayed when staged changes are present."""
self._run_git_review('-s')
self._run_git('checkout', '-b', 'test_branch')
# By passing a filename, we rely on an edit to a new tracked
# file, which will be staged
self._uncommitted_change(change_text='simple message')
exc = self.assertRaises(Exception, self._run_git_review)
self.assertIn("You have uncommitted changes. Please", exc.args[0])