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

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

Issue 1151283007: Docserver overhaul: Gitiles away from me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove inform_users template to fix presubmit failure (it's now a redirect) Created 5 years, 6 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 c6484293ba82fea5248bfb5c308c3735ce22a1c4..33fa87f6efb06f335ef24a202eeaeb9603fa10f5 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -15,8 +15,8 @@ import posixpath
import sys
import time
import unittest
+import update_cache
-from appengine_wrappers import SetTaskRunnerForTest
from branch_utility import BranchUtility
from chroot_file_system import ChrootFileSystem
from extensions_paths import (
@@ -86,29 +86,17 @@ class IntegrationTest(unittest.TestCase):
ConfigureFakeFetchers()
@EnableLogging('info')
- def testCronAndPublicFiles(self):
- '''Runs cron then requests every public file. Cron needs to be run first
+ def testUpdateAndPublicFiles(self):
+ '''Runs update then requests every public file. Update needs to be run first
because the public file requests are offline.
'''
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...')
+ print('Running update...')
start_time = time.time()
try:
- response = Handler(Request.ForTest('/_cron')).Get()
- if response:
- self.assertEqual(200, response.status)
- self.assertEqual('Success', response.content.ToString())
- else:
- self.fail('No response for _cron')
+ update_cache.UpdateCache()
finally:
print('Took %s seconds' % (time.time() - start_time))

Powered by Google App Engine
This is Rietveld 408576698