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

Unified Diff: chrome/common/extensions/docs/server2/integration_test.py

Issue 600073002: Docserver: Run tasks in testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: chrome/common/extensions/docs/server2/integration_test.py
diff --git a/chrome/common/extensions/docs/server2/integration_test.py b/chrome/common/extensions/docs/server2/integration_test.py
index cfc3f37bbaacbb711ec7a3840126efda6776d382..3724a9cb5725633d0922cb8eceee8f62d4eab43d 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -16,6 +16,7 @@ import sys
import time
import unittest
+from appengine_wrappers import SetTaskRunnerForTest
from branch_utility import BranchUtility
from chroot_file_system import ChrootFileSystem
from extensions_paths import (
@@ -92,6 +93,13 @@ class IntegrationTest(unittest.TestCase):
if _EXPLICIT_TEST_FILES is not None:
return
+
+ def task_runner(url, commit=None):
+ arguments = { 'commit': commit } if commit else {}
+ Handler(Request.ForTest(url, arguments=arguments)).Get()
+
+ SetTaskRunnerForTest(task_runner)
+
print('Running cron...')
start_time = time.time()
try:
« no previous file with comments | « chrome/common/extensions/docs/server2/appengine_wrappers.py ('k') | chrome/common/extensions/docs/server2/servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698