Skip to content

Commit

Permalink
test: add imports into test_collections systest (#88)
Browse files Browse the repository at this point in the history
* test: add imports into test_collections systest

* Revert "test: add imports into test_collections systest"

This reverts commit beaefa5.

* move the test into a separate case
  • Loading branch information
Gurov Ilya committed Jul 16, 2020
1 parent 71737a6 commit 4471923
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/system/test_system.py
Expand Up @@ -73,6 +73,15 @@ def test_collections(client):
assert isinstance(collections, list)


def test_collections_w_import():
from google.cloud import firestore

client = firestore.Client()
collections = list(client.collections())

assert isinstance(collections, list)


def test_create_document(client, cleanup):
now = datetime.datetime.utcnow().replace(tzinfo=UTC)
collection_id = "doc-create" + UNIQUE_RESOURCE_ID
Expand Down

0 comments on commit 4471923

Please sign in to comment.