Skip to content

Commit

Permalink
imagecollection_test.py: Add test_count.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686929368
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed Oct 17, 2024
1 parent b281501 commit cc8a060
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/ee/tests/imagecollection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,16 @@ def test_copy_properties(self):
result = json.loads(expression.serialize())
self.assertEqual(expect, result)

def test_count(self):
expect = make_expression_graph({
'arguments': {'collection': IMAGES_A},
# Note that this is not ImageCollection.count or collection.count.
'functionName': 'reduce.count',
})
expression = ee.ImageCollection('a').count()
result = json.loads(expression.serialize())
self.assertEqual(expect, result)

def test_distance(self):
# Inherited from Collection.distance.
features = ee.ImageCollection('a')
Expand Down

0 comments on commit cc8a060

Please sign in to comment.