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

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

Issue 10834144: Extensions Docs Server: Split apps from extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 57a1a3a12d7ec538e1ca64dedddea721151c33c3..7bfe2b83c50f00bf19fe971b75fe3948d38a99cc 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', doc_type)):
+ 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')

Powered by Google App Engine
This is Rietveld 408576698