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

Unified Diff: appengine/findit/common/test/change_log_test.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 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
Index: appengine/findit/common/test/change_log_test.py
diff --git a/appengine/findit/common/test/change_log_test.py b/appengine/findit/common/test/change_log_test.py
deleted file mode 100644
index 6ef4fdeffe245e1497c77bfa953709a6a5c0732d..0000000000000000000000000000000000000000
--- a/appengine/findit/common/test/change_log_test.py
+++ /dev/null
@@ -1,49 +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 common.change_log import FileChangeInfo
-from common.change_log import 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/common/test/cache_decorator_test.py ('k') | appengine/findit/common/test/chrome_dependency_fetcher_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698