Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Aug 24, 2023
1 parent dff8459 commit 3e66842
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/unit/v1/test_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,11 @@ def test_aggregation_from_query():
kwargs = _helpers.make_retry_timeout_kwargs(retry, timeout)

# Execute the query and check the response.
for aggregation_query in [query.count(alias="total"), query.sum("foo", alias="total"), query.avg("foo", alias="total")]:
for aggregation_query in [
query.count(alias="total"),
query.sum("foo", alias="total"),
query.avg("foo", alias="total"),
]:
# reset api mock
firestore_api.run_aggregation_query.reset_mock()
firestore_api.run_aggregation_query.return_value = iter([response_pb])
Expand Down
6 changes: 5 additions & 1 deletion tests/unit/v1/test_async_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ async def test_async_aggregation_from_query():
kwargs = _helpers.make_retry_timeout_kwargs(retry, timeout)

# Execute each aggregation query type and check the response.
for aggregation_query in [query.count(alias="total"), query.sum("foo", alias="total"), query.avg("foo", alias="total")]:
for aggregation_query in [
query.count(alias="total"),
query.sum("foo", alias="total"),
query.avg("foo", alias="total"),
]:
# reset api mock
firestore_api.run_aggregation_query.reset_mock()
firestore_api.run_aggregation_query.return_value = iter([response_pb])
Expand Down

0 comments on commit 3e66842

Please sign in to comment.