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

Side by Side Diff: appengine/findit/handlers/crash/test/fracas_result_feedback_test.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: Rebase on https://codereview.chromium.org/2557553002/ 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 7
8 from google.appengine.api import users 8 from google.appengine.api import users
9 import webapp2 9 import webapp2
10 10
11 from testing_utils import testing 11 from testing_utils import testing
12 12
13 from handlers.crash import fracas_result_feedback 13 from handlers.crash import fracas_result_feedback
14 from lib import time_util 14 from libs import time_util
15 from model import analysis_status 15 from model import analysis_status
16 from model import triage_status 16 from model import triage_status
17 from model.crash.fracas_crash_analysis import FracasCrashAnalysis 17 from model.crash.fracas_crash_analysis import FracasCrashAnalysis
18 18
19 19
20 class FracasResultFeedbackTest(testing.AppengineTestCase): 20 class FracasResultFeedbackTest(testing.AppengineTestCase):
21 app_module = webapp2.WSGIApplication( 21 app_module = webapp2.WSGIApplication(
22 [('/fracas-result-feedback', 22 [('/fracas-result-feedback',
23 fracas_result_feedback.FracasResultFeedback)], debug=True) 23 fracas_result_feedback.FracasResultFeedback)], debug=True)
24 24
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 'result_property': 'regression_range', 116 'result_property': 'regression_range',
117 'user_name': 'test', 117 'user_name': 'test',
118 'triage_status': triage_status.TRIAGED_CORRECT 118 'triage_status': triage_status.TRIAGED_CORRECT
119 }] 119 }]
120 self.analysis.put() 120 self.analysis.put()
121 expected_result = self._GenerateDisplayData() 121 expected_result = self._GenerateDisplayData()
122 response_json = self.test_app.get('/fracas-result-feedback?format=json&' 122 response_json = self.test_app.get('/fracas-result-feedback?format=json&'
123 'key=%s' % self.analysis.key.urlsafe()) 123 'key=%s' % self.analysis.key.urlsafe())
124 self.assertEqual(200, response_json.status_int) 124 self.assertEqual(200, response_json.status_int)
125 self.assertEqual(expected_result, response_json.json_body) 125 self.assertEqual(expected_result, response_json.json_body)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698