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

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

Issue 10871002: Extensions Docs Server: Testing GithubFileSystem and cron jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small changes 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 37a7674d6169be0378b3c2da8c6f555368bc6e3a..4c582175364830ca14e80fb0b86de34fc68f7d95 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -11,9 +11,6 @@ import unittest
from fake_fetchers import ConfigureFakeFetchers
KNOWN_FAILURES = [
- # Apps samples fails because it requires fetching data from github.com.
- # This should be tested though: http://crbug.com/141910.
- os.path.join('apps', 'samples.html'),
]
ConfigureFakeFetchers()
@@ -69,5 +66,12 @@ class IntegrationTest(unittest.TestCase):
self.assertEqual(200, response.status)
self.assertTrue(response.out.getvalue())
+ def testCron(self):
+ request = _MockRequest('/cron/trunk')
+ response = _MockResponse()
+ Handler(request, response, local_path='../..').get()
+ self.assertEqual(200, response.status)
+ self.assertEqual('Success', response.out.getvalue())
+
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698