Skip to content

Commit 61ae07a

Browse files
committed
chore(tests): disable pipeline tests in emulator
1 parent 4c33ae8 commit 61ae07a

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

tests/system/test_pipeline_acceptance.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,15 @@
3434
from google.cloud.firestore import Client, AsyncClient
3535

3636
from test__helpers import FIRESTORE_ENTERPRISE_DB
37+
from test__helpers import FIRESTORE_EMULATOR
3738

3839
FIRESTORE_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+
4046
test_dir_name = os.path.dirname(__file__)
4147

4248
id_format = (

tests/system/test_system.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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()}

tests/system/test_system_async.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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()}

tests/unit/v1/test_pipeline_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)