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

Side by Side Diff: appengine/findit/handlers/test/help_triage_test.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: moving ./gitiles to ./lib/gitiles 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 json 5 import json
6 import os 6 import os
7 import webapp2 7 import webapp2
8 8
9 from testing_utils import testing 9 from testing_utils import testing
10 10
11 from common.git_repository import GitRepository 11 from lib.gitiles.git_repository import GitRepository
12 from handlers import help_triage 12 from handlers import help_triage
13 from model.wf_analysis import WfAnalysis 13 from model.wf_analysis import WfAnalysis
14 from model.wf_build import WfBuild 14 from model.wf_build import WfBuild
15 from waterfall import buildbot 15 from waterfall import buildbot
16 from waterfall.build_info import BuildInfo 16 from waterfall.build_info import BuildInfo
17 from waterfall import build_util 17 from waterfall import build_util
18 18
19 19
20 EXPECTED_RESULTS_120 = { 20 EXPECTED_RESULTS_120 = {
21 '598ed4fa15e6a1d0d92b2b7df04fc31ab5d6e829': { 21 '598ed4fa15e6a1d0d92b2b7df04fc31ab5d6e829': {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 self.master_name, self.builder_name, 123) 257 self.master_name, self.builder_name, 123)
258 build = WfBuild.Create(self.master_name, self.builder_name, 123) 258 build = WfBuild.Create(self.master_name, self.builder_name, 123)
259 build.data = self._GetBuildInfo(self.master_name, self.builder_name, 123) 259 build.data = self._GetBuildInfo(self.master_name, self.builder_name, 123)
260 build.put() 260 build.put()
261 261
262 response = self.test_app.get('/help-triage', params={'url': build_url}) 262 response = self.test_app.get('/help-triage', params={'url': build_url})
263 expected_results = {} 263 expected_results = {}
264 264
265 self.assertEqual(200, response.status_int) 265 self.assertEqual(200, response.status_int)
266 self.assertEqual(expected_results, response.json_body) 266 self.assertEqual(expected_results, response.json_body)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698