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

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

Issue 15087006: Docserver: there is only one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: epic rebase Created 7 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/cron_servlet_test.py
diff --git a/chrome/common/extensions/docs/server2/cron_servlet_test.py b/chrome/common/extensions/docs/server2/cron_servlet_test.py
index a5fb6224d291093b742dbb2946a3ad0f7893f0aa..07775ebeb37a2fe7f31d7ced76c502bca0739fc8 100755
--- a/chrome/common/extensions/docs/server2/cron_servlet_test.py
+++ b/chrome/common/extensions/docs/server2/cron_servlet_test.py
@@ -31,8 +31,8 @@ class _TestDelegate(CronServlet.Delegate):
return TestBranchUtility.CreateWithCannedData()
def CreateHostFileSystemCreator(self, object_store_creator):
- def constructor(branch, revision=None):
- file_system = self._create_file_system(branch, revision)
+ def constructor(branch=None, revision=None):
+ file_system = self._create_file_system(revision)
self.file_systems.append(file_system)
return file_system
return HostFileSystemCreator(object_store_creator,
@@ -53,8 +53,7 @@ class CronServletTest(unittest.TestCase):
def testEverything(self):
# All these tests are dependent (see above comment) so lump everything in
# the one test.
- delegate = _TestDelegate(
- lambda _, __: MockFileSystem(LocalFileSystem.Create()))
+ delegate = _TestDelegate(lambda _: MockFileSystem(LocalFileSystem.Create()))
# Test that the cron runs successfully.
response = CronServlet(Request.ForTest('trunk'),
@@ -122,7 +121,7 @@ class CronServletTest(unittest.TestCase):
storage_html_path = 'docs/templates/public/apps/storage.html'
static_txt_path = 'docs/static/static.txt'
- def create_file_system(branch, revision=None):
+ def create_file_system(revision=None):
'''Creates a MockFileSystem at |revision| by applying that many |updates|
to it.
'''
« no previous file with comments | « chrome/common/extensions/docs/server2/cron_servlet.py ('k') | chrome/common/extensions/docs/server2/empty_dir_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698