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

Unified Diff: tests/svn_utils_test.py

Issue 5968005: Move patch management functions into their own file, patch.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: rebase against trunk Created 10 years 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 | « tests/checkout_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/svn_utils_test.py
diff --git a/tests/svn_utils_test.py b/tests/svn_utils_test.py
index 976e46f577a5b2559ad5e91f0e2595d3357a3126..e78bf50ae8f1563e327086086bb5c3471a746de9 100755
--- a/tests/svn_utils_test.py
+++ b/tests/svn_utils_test.py
@@ -14,7 +14,7 @@ import unittest
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(ROOT_DIR, '..'))
-import pending_manager
+import patch
import svn_utils
PATCH = """\
@@ -56,8 +56,8 @@ class SvnUtils(unittest.TestCase):
svn_utils.revert(url, self.root_dir, None, None)
content = read(os.path.join(self.root_dir, 'svn_utils_test.txt'))
self.assertTrue(os.path.join(self.root_dir, 'svn_utils_test.txt'))
- svn_utils.apply_patch(
- self.root_dir, pending_manager.auto_mangle_git_patch(PATCH))
+ patch.apply_patch(
+ self.root_dir, patch.auto_mangle_git_patch(PATCH))
content_lines = content.splitlines(True)
content_modified = ''.join(content_lines[0:5] + ['FOO!\n'] +
content_lines[5:])
« no previous file with comments | « tests/checkout_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698