(self)
| 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() |
nothing calls this directly
no test coverage detected