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

Unified Diff: appengine/findit/lib/gitiles/test/change_log_test.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 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
Index: appengine/findit/lib/gitiles/test/change_log_test.py
diff --git a/appengine/findit/lib/gitiles/test/change_log_test.py b/appengine/findit/lib/gitiles/test/change_log_test.py
deleted file mode 100644
index f9198bdc62a6390f96f015dd63958a12b8ec2377..0000000000000000000000000000000000000000
--- a/appengine/findit/lib/gitiles/test/change_log_test.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from lib.gitiles.change_log import FileChangeInfo, ChangeLog
-
-class ChangeLogTest(unittest.TestCase):
- def testFileChangeinfo(self):
- filechange_dict = {
- 'change_type': 'copy',
- 'old_path': 'a',
- 'new_path': 'b'
- }
- filechange_info = FileChangeInfo.FromDict(filechange_dict)
- self.assertEqual(filechange_dict, filechange_info.ToDict())
-
- def testChangeLog(self):
- change_log_dict = {
- 'author_name': 'a',
- 'author_email': 'b@email.com',
- 'author_time': '2014-08-13 00:53:12',
- 'committer_name': 'c',
- 'committer_email': 'd@email.com',
- 'committer_time': '2014-08-14 00:53:12',
- 'revision': 'aaaa',
- 'commit_position': 1111,
- 'touched_files': [
- {
- 'change_type': 'copy',
- 'old_path': 'old_file',
- 'new_path': 'new_file'
- },
- {
- 'change_type': 'modify',
- 'old_path': 'file',
- 'new_path': 'file'
- }
- ],
- 'message': 'blabla...',
- 'commit_url': 'https://chromium.googlesource.com/chromium/src/+/git_hash',
- 'code_review_url': 'https://codereview.chromium.org/2222',
- 'reverted_revision': '8d4a4fa6s18raf3re12tg6r'
- }
-
- change_log = ChangeLog.FromDict(change_log_dict)
- self.assertEqual(change_log_dict, change_log.ToDict())
« no previous file with comments | « appengine/findit/lib/gitiles/test/blame_test.py ('k') | appengine/findit/lib/gitiles/test/commit_util_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698