Skip to content

Commit beeb430

Browse files
crwilcoxGurov Ilya
andauthored
test: add imports into test_collections systest (#88) (#105)
* test: add imports into test_collections systest * Revert "test: add imports into test_collections systest" This reverts commit beaefa51c695ef27fab77e9145bfa861e0f8bcea. * move the test into a separate case Co-authored-by: Gurov Ilya <ilya.faer@mail.ru>
1 parent cc5f89c commit beeb430

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/google-cloud-firestore/tests/system/test_system.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ def test_collections(client):
6262
assert isinstance(collections, list)
6363

6464

65+
def test_collections_w_import():
66+
from google.cloud import firestore
67+
68+
client = firestore.Client()
69+
collections = list(client.collections())
70+
71+
assert isinstance(collections, list)
72+
73+
6574
def test_create_document(client, cleanup):
6675
now = datetime.datetime.utcnow().replace(tzinfo=UTC)
6776
collection_id = "doc-create" + UNIQUE_RESOURCE_ID

0 commit comments

Comments
 (0)