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

Side by Side Diff: appengine/findit/handlers/test/triage_suspected_cl_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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import calendar 5 import calendar
6 from datetime import datetime 6 from datetime import datetime
7 import mock 7 import mock
8 8
9 from testing_utils import testing 9 from testing_utils import testing
10 import webapp2 10 import webapp2
11 11
12 from handlers import triage_suspected_cl 12 from handlers import triage_suspected_cl
13 from lib import time_util 13 from libs import time_util
14 from model import analysis_approach_type 14 from model import analysis_approach_type
15 from model import result_status 15 from model import result_status
16 from model import suspected_cl_status 16 from model import suspected_cl_status
17 from model.wf_analysis import WfAnalysis 17 from model.wf_analysis import WfAnalysis
18 from model.wf_suspected_cl import WfSuspectedCL 18 from model.wf_suspected_cl import WfSuspectedCL
19 from waterfall import buildbot 19 from waterfall import buildbot
20 20
21 21
22 class TriageSuspectedClTest(testing.AppengineTestCase): 22 class TriageSuspectedClTest(testing.AppengineTestCase):
23 app_module = webapp2.WSGIApplication([ 23 app_module = webapp2.WSGIApplication([
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 cl_info = '%s/%s' % (self.repo_name, self.revision_1) 363 cl_info = '%s/%s' % (self.repo_name, self.revision_1)
364 364
365 mocked_timestamp = calendar.timegm(datetime(2016, 7, 1, 00, 00).timetuple()) 365 mocked_timestamp = calendar.timegm(datetime(2016, 7, 1, 00, 00).timetuple())
366 mock_fn.return_value = mocked_timestamp 366 mock_fn.return_value = mocked_timestamp
367 367
368 success = triage_suspected_cl._UpdateSuspectedCLAndAnalysis( 368 success = triage_suspected_cl._UpdateSuspectedCLAndAnalysis(
369 self.master_name, self.builder_name, self.build_number_1, cl_info, 369 self.master_name, self.builder_name, self.build_number_1, cl_info,
370 suspected_cl_status.CORRECT, 'test') 370 suspected_cl_status.CORRECT, 'test')
371 371
372 self.assertTrue(success) 372 self.assertTrue(success)
OLDNEW
« no previous file with comments | « appengine/findit/handlers/test/help_triage_test.py ('k') | appengine/findit/handlers/triage_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698