Skip to content

Commit c836f8f

Browse files
TimPansinogithub-actions[bot]
authored andcommitted
[Mega-Linter] Apply linters fixes
1 parent 02a55a1 commit c836f8f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/datastore_firestore/test_query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ def test_firestore_aggregation_query_generators(collection, assert_trace_for_gen
124124
def patch_partition_queries(monkeypatch, client, collection, sample_data):
125125
"""
126126
Partitioning is not implemented in the Firestore emulator.
127-
127+
128128
Ordinarily this method would return a generator of Cursor objects. Each Cursor must point at a valid document path.
129-
To test this, we can patch the RPC to return 1 Cursor which is pointed at any document available.
129+
To test this, we can patch the RPC to return 1 Cursor which is pointed at any document available.
130130
The get_partitions will take that and make 2 QueryPartition objects out of it, which should be enough to ensure
131131
we can exercise the generator's tracing.
132132
"""
133-
from google.cloud.firestore_v1.types.query import Cursor
134133
from google.cloud.firestore_v1.types.document import Value
134+
from google.cloud.firestore_v1.types.query import Cursor
135135

136136
subcollection = collection.document("subcollection").collection("subcollection1")
137137
documents = [d for d in subcollection.list_documents()]
@@ -190,5 +190,6 @@ def _test():
190190
@background_task()
191191
def test_firestore_collection_group_generators(collection, assert_trace_for_generator, patch_partition_queries):
192192
from google.cloud.firestore import CollectionGroup
193+
193194
collection_group = CollectionGroup(collection)
194195
assert_trace_for_generator(collection_group.get_partitions, 1)

0 commit comments

Comments
 (0)