File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 3434from google .cloud .firestore import Client , AsyncClient
3535
3636from test__helpers import FIRESTORE_ENTERPRISE_DB
37+ from test__helpers import FIRESTORE_EMULATOR
3738
3839FIRESTORE_PROJECT = os .environ .get ("GCLOUD_PROJECT" )
3940
41+ pytestmark = pytest .mark .skipif (
42+ condition = FIRESTORE_EMULATOR ,
43+ reason = "Pipeline tests are currently not supported by emulator" ,
44+ )
45+
4046test_dir_name = os .path .dirname (__file__ )
4147
4248id_format = (
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ def verify_pipeline(query):
9494 """
9595 from google .cloud .firestore_v1 .base_aggregation import BaseAggregationQuery
9696
97+ if FIRESTORE_EMULATOR :
98+ pytest .skip ("skip pipeline verification on emulator" )
99+
97100 def _clean_results (results ):
98101 if isinstance (results , dict ):
99102 return {k : _clean_results (v ) for k , v in results .items ()}
Original file line number Diff line number Diff line change @@ -174,6 +174,9 @@ async def verify_pipeline(query):
174174 """
175175 from google .cloud .firestore_v1 .base_aggregation import BaseAggregationQuery
176176
177+ if FIRESTORE_EMULATOR :
178+ pytest .skip ("skip pipeline verification on emulator" )
179+
177180 def _clean_results (results ):
178181 if isinstance (results , dict ):
179182 return {k : _clean_results (v ) for k , v in results .items ()}
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ async def test_double_iterate(self):
484484
485485 async def async_gen (items ):
486486 for item in items :
487- yield item
487+ yield item # pragma: NO COVER
488488
489489 # mock the api call to avoid real network requests
490490 instance ._client ._firestore_api .execute_pipeline = mock .AsyncMock (
You can’t perform that action at this time.
0 commit comments