Skip to content

Commit bb7afc7

Browse files
committed
fix: reorder tests
1 parent 75fa62e commit bb7afc7

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

firestore/cloud-client/snippets.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@
2020

2121
UNIQUE_STRING = str(uuid.uuid4()).split("-")[0]
2222

23-
def quickstart_new_instance():
24-
# [START quickstart_new_instance]
25-
from google.cloud import firestore
26-
27-
# Project ID is determined by the GCLOUD_PROJECT environment variable
28-
db = firestore.Client()
29-
# [END quickstart_new_instance]
30-
31-
return db
32-
3323

3424
def _make_one():
3525
# monkeypatch the collection method so the collection names can be unique for each test run.
@@ -41,6 +31,18 @@ def modified_collection_creation(collection_name, *args, **kwargs):
4131
db.collection = modified_collection_creation
4232
return db
4333

34+
35+
def quickstart_new_instance():
36+
# [START quickstart_new_instance]
37+
from google.cloud import firestore
38+
39+
# Project ID is determined by the GCLOUD_PROJECT environment variable
40+
db = firestore.Client()
41+
# [END quickstart_new_instance]
42+
43+
return db
44+
45+
4446
def quickstart_add_data_one():
4547
db = _make_one()
4648
# [START quickstart_add_data_one]

0 commit comments

Comments
 (0)