Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: tests/rietveld_test.py

Issue 7857006: Make the rietveld client code ignore file status more often. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: oops Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rietveld.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/rietveld_test.py
diff --git a/tests/rietveld_test.py b/tests/rietveld_test.py
index 8a3e81e07a15e78b39f5d09d72b8877aa187789b..ff43e459d91b1a42c441ac03bbf8cc97baaa7a26 100755
--- a/tests/rietveld_test.py
+++ b/tests/rietveld_test.py
@@ -180,12 +180,14 @@ class RietveldTest(unittest.TestCase):
is_new=True)
def test_delete(self):
+ name = 'tools/clang_check/README.chromium'
self.requests = [
- ('/api/123/456', _api({'file_a': _file('D')})),
+ ('/api/123/456', _api({name: _file('D')})),
+ ('/download/issue123_456_789.diff', RAW.DELETE),
]
patches = self.rietveld.get_patch(123, 456)
self.assertEquals(1, len(patches.patches))
- self._check_patch(patches.patches[0], 'file_a', None, is_delete=True)
+ self._check_patch(patches.patches[0], name, None, is_delete=True)
def test_m_plus(self):
properties = '\nAdded: svn:eol-style\n + LF\n'
« no previous file with comments | « rietveld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698