MCPcopy
hub / github.com/google/earthengine-api / test_cancel_task

Method test_cancel_task

python/ee/tests/data_test.py:298–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296 )
297
298 def test_cancel_task(self):
299 cloud_api_resource = mock.MagicMock()
300 with apitestcase.UsingCloudApi(cloud_api_resource=cloud_api_resource):
301 cancel_mock = cloud_api_resource.projects().operations().cancel
302 cancel_mock.execute.return_value = {}
303 ee.data.cancelTask('foo')
304 cancel_mock.assert_called_once_with(
305 name='projects/earthengine-legacy/operations/foo', body={}
306 )
307
308 def test_create_asset(self):
309 cloud_api_resource = mock.MagicMock()

Callers

nothing calls this directly

Calls 2

operationsMethod · 0.80
projectsMethod · 0.80

Tested by

no test coverage detected