From 447192313ad3093d9fd8c24805aea957eaf1ab7d Mon Sep 17 00:00:00 2001 From: Gurov Ilya Date: Thu, 16 Jul 2020 19:20:01 +0300 Subject: [PATCH] test: add imports into test_collections systest (#88) * 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 --- tests/system/test_system.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/system/test_system.py b/tests/system/test_system.py index 5a5184aca..fc5592f02 100644 --- a/tests/system/test_system.py +++ b/tests/system/test_system.py @@ -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