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 57a1a3a12d7ec538e1ca64dedddea721151c33c3..e293f2bbc0aae40fcc1eb538632e9b13c6de4e01 100755 |
--- a/chrome/common/extensions/docs/server2/integration_test.py |
+++ b/chrome/common/extensions/docs/server2/integration_test.py |
@@ -30,14 +30,15 @@ class _MockRequest(object): |
class IntegrationTest(unittest.TestCase): |
def testAll(self): |
- for filename in os.listdir(os.path.join('templates', 'public')): |
- if filename in KNOWN_FAILURES or filename.startswith('.'): |
- continue |
- request = _MockRequest(filename) |
- response = _MockResponse() |
- Handler(request, response, local_path='../..').get() |
- self.assertEqual(200, response.status) |
- self.assertTrue(response.out.getvalue()) |
+ for doc_type in ['apps', 'extensions']: |
+ for filename in os.listdir(os.path.join('templates', 'public', doc_type)): |
not at google - send to devlin
2012/08/06 08:38:33
can you do a recursive search for .html files rath
cduvall
2012/08/06 18:36:16
Done.
|
+ if filename in KNOWN_FAILURES or filename.startswith('.'): |
+ continue |
+ request = _MockRequest(doc_type + '/' + filename) |
+ response = _MockResponse() |
+ Handler(request, response, local_path='../..').get() |
+ self.assertEqual(200, response.status) |
+ self.assertTrue(response.out.getvalue()) |
def test404(self): |
request = _MockRequest('junk.html') |
@@ -49,7 +50,7 @@ class IntegrationTest(unittest.TestCase): |
def testLocales(self): |
# Use US English, Spanish, and Arabic. |
for lang in ['en-US', 'es', 'ar']: |
- request = _MockRequest('samples.html') |
+ request = _MockRequest('extensions/samples.html') |
request.headers['Accept-Language'] = lang + ';q=0.8' |
response = _MockResponse() |
Handler(request, response, local_path='../..').get() |