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

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

Issue 10825067: Extensions Docs Server: Apps samples page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Samples on API pages Created 8 years, 4 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 6f0244c39e983bdd40b828b519def5242ccbce4c..4effc42799c1cfc77faa478f5f70d02af4462630 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -3,6 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import logging
import os
from StringIO import StringIO
import unittest
@@ -10,10 +11,13 @@ import unittest
import appengine_memcache as memcache
import handler
from handler import Handler
+import url_constants
KNOWN_FAILURES = [
+ # Apps samples fails because it requires fetching data from github.com.
+ 'samples.html',
not at google - send to devlin 2012/08/09 07:52:36 ... except now we're not testing the extensions ei
cduvall 2012/08/09 19:20:08 Done.
not at google - send to devlin 2012/08/10 06:02:18 It would be nice to actually test this... and for
cduvall 2012/08/10 21:17:47 Done. Bug is: http://crbug.com/141910
# Exception in schema compiler (model.py). See http://crbug.com/141279.
- 'app.html',
+ 'app.html'
]
class _MockResponse(object):
@@ -31,6 +35,7 @@ class _MockRequest(object):
class IntegrationTest(unittest.TestCase):
def testAll(self):
+ logging.getLogger().setLevel(logging.ERROR)
not at google - send to devlin 2012/08/09 07:52:36 remove logging
cduvall 2012/08/09 19:20:08 This isn't a log, it just sets the logging level s
base_path = os.path.join('templates', 'public')
for path, dirs, files in os.walk(base_path):
for name in files:
@@ -63,7 +68,7 @@ class IntegrationTest(unittest.TestCase):
def testWarmupRequest(self):
for branch in ['dev', 'trunk', 'beta', 'stable']:
handler.BRANCH_UTILITY_MEMCACHE.Set(
- branch + '.' + handler.OMAHA_PROXY_URL,
+ branch + '.' + url_constants.OMAHA_PROXY_URL,
'local',
memcache.MEMCACHE_BRANCH_UTILITY)
request = _MockRequest('_ah/warmup')

Powered by Google App Engine
This is Rietveld 408576698