Skip to content

Commit 2c2a1ee

Browse files
committed
ran black
1 parent 92a1dc6 commit 2c2a1ee

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

google/cloud/firestore_v1/async_pipeline.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ async def execute(
7777
if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp
7878
within the past 7 days. For the most accurate results, use UTC timezone.
7979
"""
80-
return [result async for result in self.stream(transaction=transaction, read_time=read_time)]
80+
return [
81+
result
82+
async for result in self.stream(
83+
transaction=transaction, read_time=read_time
84+
)
85+
]
8186

8287
async def stream(
8388
self,

google/cloud/firestore_v1/pipeline.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ def execute(
7474
if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp
7575
within the past 7 days. For the most accurate results, use UTC timezone.
7676
"""
77-
return [result for result in self.stream(transaction=transaction, read_time=read_time)]
77+
return [
78+
result
79+
for result in self.stream(transaction=transaction, read_time=read_time)
80+
]
7881

7982
def stream(
8083
self,

tests/system/test_system.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,6 @@ def test_pipeline_w_read_time(query_docs, cleanup, database):
16951695
collection, stored, allowed_vals = query_docs
16961696
num_vals = len(allowed_vals)
16971697

1698-
16991698
# Find a read_time before adding the new document.
17001699
snapshots = collection.get()
17011700
read_time = snapshots[0].read_time

tests/system/test_system_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,7 @@ async def test_query_stream_w_read_time(query_docs, cleanup, database):
16111611
assert new_ref.id in new_values
16121612
assert new_values[new_ref.id] == new_data
16131613

1614+
16141615
@pytest.mark.skipif(IS_KOKORO_TEST, reason="skipping pipeline verification on kokoro")
16151616
@pytest.mark.parametrize("database", [FIRESTORE_ENTERPRISE_DB], indirect=True)
16161617
async def test_pipeline_w_read_time(query_docs, cleanup, database):

0 commit comments

Comments
 (0)