File tree Expand file tree Collapse file tree
packages/google-cloud-firestore/tests/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,8 +94,13 @@ def verify_pipeline(query):
9494 """
9595 from google .cloud .firestore_v1 .base_aggregation import BaseAggregationQuery
9696
97+ client = query ._client
9798 if FIRESTORE_EMULATOR :
98- pytest .skip ("skip pipeline verification on emulator" )
99+ print ("skip pipeline verification on emulator" )
100+ return
101+ if client ._database != FIRESTORE_ENTERPRISE_DB :
102+ print ("pipelines only supports enterprise db" )
103+ return
99104
100105 def _clean_results (results ):
101106 if isinstance (results , dict ):
@@ -126,7 +131,6 @@ def _clean_results(results):
126131 except Exception as e :
127132 # if we expect the query to fail, capture the exception
128133 query_exception = e
129- client = query ._client
130134 pipeline = client .pipeline ().create_from (query )
131135 if query_exception :
132136 # ensure that the pipeline uses same error as query
Original file line number Diff line number Diff line change @@ -174,8 +174,13 @@ async def verify_pipeline(query):
174174 """
175175 from google .cloud .firestore_v1 .base_aggregation import BaseAggregationQuery
176176
177+ client = query ._client
177178 if FIRESTORE_EMULATOR :
178- pytest .skip ("skip pipeline verification on emulator" )
179+ print ("skip pipeline verification on emulator" )
180+ return
181+ if client ._database != FIRESTORE_ENTERPRISE_DB :
182+ print ("pipelines only supports enterprise db" )
183+ return
179184
180185 def _clean_results (results ):
181186 if isinstance (results , dict ):
@@ -206,7 +211,6 @@ def _clean_results(results):
206211 except Exception as e :
207212 # if we expect the query to fail, capture the exception
208213 query_exception = e
209- client = query ._client
210214 pipeline = client .pipeline ().create_from (query )
211215 if query_exception :
212216 # ensure that the pipeline uses same error as query
You can’t perform that action at this time.
0 commit comments