| Index: chrome/common/extensions/docs/server2/appengine_wrappers.py
|
| diff --git a/chrome/common/extensions/docs/server2/appengine_wrappers.py b/chrome/common/extensions/docs/server2/appengine_wrappers.py
|
| index 7fcb7159d5dd3330c8715a3023751e6201369a44..761daaf553bcfbbf8c7d97bb1aa18a7ef1283758 100644
|
| --- a/chrome/common/extensions/docs/server2/appengine_wrappers.py
|
| +++ b/chrome/common/extensions/docs/server2/appengine_wrappers.py
|
| @@ -5,22 +5,19 @@
|
| # This will attempt to import the actual App Engine modules, and if it fails,
|
| # they will be replaced with fake modules. This is useful during testing.
|
| try:
|
| + import google.appengine.ext.blobstore as blobstore
|
| import google.appengine.ext.webapp as webapp
|
| + import google.appengine.api.files as files
|
| import google.appengine.api.memcache as memcache
|
| import google.appengine.api.urlfetch as urlfetch
|
| except ImportError:
|
| - class FakeUrlFetch(object):
|
| - """A fake urlfetch module that errors for all method calls.
|
| - """
|
| - def fetch(self, url):
|
| - raise NotImplementedError()
|
| -
|
| - def create_rpc(self):
|
| + class NotImplemented(object):
|
| + def __getattr__(self, attr):
|
| raise NotImplementedError()
|
|
|
| - def make_fetch_call(self):
|
| - raise NotImplementedError()
|
| - urlfetch = FakeUrlFetch()
|
| + blobstore = NotImplemented()
|
| + files = NotImplemented()
|
| + urlfetch = NotImplemented()
|
|
|
| class InMemoryMemcache(object):
|
| """A memcache that stores items in memory instead of using the memcache
|
|
|