def setUp(self): patch('googleapiclient.discovery.build').start() patch('oauth2client.client.GoogleCredentials.get_application_default') \ .start() self.testbed = testbed.Testbed() self.testbed.activate() self.taskqueue_stub = utils.init_testbed_queue_stub(self.testbed)
def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_memcache_stub() self.testbed.init_datastore_v3_stub() self.taskqueue_stub = utils.init_testbed_queue_stub(self.testbed)
def setUp(self): self.under_test = webtest.TestApp(after_backup_action_handler.app) self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_memcache_stub() self.testbed.init_datastore_v3_stub() self.testbed.init_app_identity_stub() self.taskqueue_stub = utils.init_testbed_queue_stub(self.testbed)
def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3_stub() self.testbed.init_memcache_stub() self.testbed.init_app_identity_stub() self.testbed.init_taskqueue_stub( root_path=os.path.join(os.path.dirname(__file__), 'resources')) self.task_queue_stub = utils.init_testbed_queue_stub(self.testbed) ndb.get_context().clear_cache()
def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_taskqueue_stub( root_path=os.path.join(os.path.dirname(__file__), 'resources')) self.task_queue_stub = utils.init_testbed_queue_stub(self.testbed)
def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.task_queue_stub = utils.init_testbed_queue_stub(self.testbed)