Commits

Anonymous committed 7349ef2

To prepare ImageServiceStub.

Comments (0)

Files changed (2)

kay/ext/testutils/gae_test_base.py

     from google.appengine.api import user_service_stub
     from google.appengine.api.memcache import memcache_stub
     from google.appengine.api.labs.taskqueue import taskqueue_stub
-
+    from google.appengine.api.images import images_stub
 
     AUTH_DOMAIN = 'gmail.com'
 
     _apiproxy.RegisterStub('mail', mail_stub.MailServiceStub()) 
     _apiproxy.RegisterStub('memcache', memcache_stub.MemcacheServiceStub()) 
     _apiproxy.RegisterStub('taskqueue', taskqueue_stub.TaskQueueServiceStub()) 
+    _apiproxy.RegisterStub('images', images_stub.ImagesServiceStub())
+
     return _apiproxy
 
 class GAETestBase(unittest.TestCase):

kay/management/test.py

 from google.appengine.api.memcache import memcache_stub
 from google.appengine.api import user_service_stub
 from google.appengine.api.labs.taskqueue import taskqueue_stub
+from google.appengine.api.images import images_stub
 
 from kay.conf import settings
 
   apiproxy_stub_map.apiproxy.RegisterStub(
     'taskqueue', taskqueue_stub.TaskQueueServiceStub())
 
+  apiproxy_stub_map.apiproxy.RegisterStub(
+    'images', images_stub.ImagesServiceStub())
+
 
 def runtest(target='', verbosity=0):
   suite = unittest.TestSuite()