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

Unified Diff: appengine/findit/handlers/test/swarming_task_test.py

Issue 1827903002: [Findit] Modify handlers_util to prepare for the new UI change. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Modify data format for compile failure Created 4 years, 9 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
Index: appengine/findit/handlers/test/swarming_task_test.py
diff --git a/appengine/findit/handlers/test/swarming_task_test.py b/appengine/findit/handlers/test/swarming_task_test.py
index e07f93813a62c2367115af41918a4ec07c00be74..bd4b7b4aff7d9f2510cb017e2f537a0e729a9ddd 100644
--- a/appengine/findit/handlers/test/swarming_task_test.py
+++ b/appengine/findit/handlers/test/swarming_task_test.py
@@ -8,6 +8,7 @@ from testing_utils import testing
from handlers import swarming_task
from waterfall import buildbot
+from waterfall import waterfall_config
class SwarmingTaskTest(testing.AppengineTestCase):
app_module = webapp2.WSGIApplication([
@@ -19,6 +20,11 @@ class SwarmingTaskTest(testing.AppengineTestCase):
self.builder_name = 'b'
self.build_number = 121
+ def MockedGetSwarmingSettings():
+ return {'server_host': 'chromium-swarm.appspot.com'}
+ self.mock(
+ waterfall_config, 'GetSwarmingSettings', MockedGetSwarmingSettings)
+
def testSwarmingTaskHandler(self):
build_url = buildbot.CreateBuildUrl(
self.master_name, self.builder_name, self.build_number)

Powered by Google App Engine
This is Rietveld 408576698