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

Unified Diff: appengine/findit/model/test/wf_suspected_cl_test.py

Issue 2425853005: [Findit] Modify Findit API to return more information to Sheriff-O-Matic. (Closed)
Patch Set: rebase 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
« no previous file with comments | « appengine/findit/handlers/test/build_failure_test.py ('k') | appengine/findit/model/wf_suspected_cl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/test/wf_suspected_cl_test.py
diff --git a/appengine/findit/model/test/wf_suspected_cl_test.py b/appengine/findit/model/test/wf_suspected_cl_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..e1c51f52fbe06999578106eba6c5f58597ff62e9
--- /dev/null
+++ b/appengine/findit/model/test/wf_suspected_cl_test.py
@@ -0,0 +1,22 @@
+# Copyright 2016 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 model.wf_suspected_cl import WfSuspectedCL
+
+
+class WfSuspectedCLTest(unittest.TestCase):
+ def testGetBuildInfo(self):
+ repo_name = 'chromium'
+ revision = 'rev1'
+ commit_position = 1
+ build = {
+ 'status': None
+ }
+ suspected_cl = WfSuspectedCL.Create(repo_name, revision, commit_position)
+ suspected_cl.builds = {
+ 'm/b/123': build
+ }
+ self.assertEqual(build, suspected_cl.GetBuildInfo('m', 'b', 123))
« no previous file with comments | « appengine/findit/handlers/test/build_failure_test.py ('k') | appengine/findit/model/wf_suspected_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698