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

Unified Diff: tests/checkout_test.py

Issue 25686005: Return unicode commit hashes in checkout.GitCheckout (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 7 years, 2 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 | « checkout.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/checkout_test.py
===================================================================
--- tests/checkout_test.py (revision 226480)
+++ tests/checkout_test.py (working copy)
@@ -284,7 +284,9 @@
self.FAKE_REPOS.svn_dirty = True
self.assertEquals(root, co.project_path)
- self.assertEquals(self.previous_log['revision'], co.prepare(None))
+ svn_rev = co.prepare(None)
+ self.assertEquals(int, type(svn_rev))
+ self.assertEquals(self.previous_log['revision'], svn_rev)
self.assertEquals('pouet', co.get_settings('bar'))
self.assertTree(self.get_trunk(False), root)
patches = self.get_patches()
@@ -377,7 +379,9 @@
self.FAKE_REPOS.git_dirty = True
self.assertEquals(root, co.project_path)
- self.assertEquals(self.previous_log['revision'], co.prepare(None))
+ git_rev = co.prepare(None)
+ self.assertEquals(unicode, type(git_rev))
iannucci 2013/10/02 18:24:36 hmm... can't we just change the expected return ty
rmistry 2013/10/02 19:02:13 We can, it will need a few changes in the CQ. Sinc
+ self.assertEquals(self.previous_log['revision'], git_rev)
self.assertEquals('pouet', co.get_settings('bar'))
self.assertTree(self.get_trunk(False), root)
patches = self.get_patches()
« no previous file with comments | « checkout.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698