tests/run.py
changeset 2276 ec80019740ea
parent 1690 376e75215f35
child 2294 be2c150d1a1f
equal deleted inserted replaced
2275:030d014792c5 2276:ec80019740ea
    54   apiproxy_stub_map.apiproxy.RegisterStub('urlfetch',
    54   apiproxy_stub_map.apiproxy.RegisterStub('urlfetch',
    55                                           urlfetch_stub.URLFetchServiceStub())
    55                                           urlfetch_stub.URLFetchServiceStub())
    56   apiproxy_stub_map.apiproxy.RegisterStub('user',
    56   apiproxy_stub_map.apiproxy.RegisterStub('user',
    57                                           user_service_stub.UserServiceStub())
    57                                           user_service_stub.UserServiceStub())
    58   apiproxy_stub_map.apiproxy.RegisterStub('datastore',
    58   apiproxy_stub_map.apiproxy.RegisterStub('datastore',
    59     datastore_file_stub.DatastoreFileStub('your_app_id', None, None))
    59     datastore_file_stub.DatastoreFileStub('test-app-run', None, None))
    60   apiproxy_stub_map.apiproxy.RegisterStub('memcache',
    60   apiproxy_stub_map.apiproxy.RegisterStub('memcache',
    61     memcache_stub.MemcacheServiceStub())
    61     memcache_stub.MemcacheServiceStub())
    62   apiproxy_stub_map.apiproxy.RegisterStub('mail', mail_stub.MailServiceStub())
    62   apiproxy_stub_map.apiproxy.RegisterStub('mail', mail_stub.MailServiceStub())
    63   import django.test.utils
    63   import django.test.utils
    64   django.test.utils.setup_test_environment()
    64   django.test.utils.setup_test_environment()