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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import unittest
6
7 from model.wf_suspected_cl import WfSuspectedCL
8
9
10 class WfSuspectedCLTest(unittest.TestCase):
11 def testGetBuildInfo(self):
12 repo_name = 'chromium'
13 revision = 'rev1'
14 commit_position = 1
15 build = {
16 'status': None
17 }
18 suspected_cl = WfSuspectedCL.Create(repo_name, revision, commit_position)
19 suspected_cl.builds = {
20 'm/b/123': build
21 }
22 self.assertEqual(build, suspected_cl.GetBuildInfo('m', 'b', 123))
OLDNEW
« 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