Skip to content

Commit 3b326c6

Browse files
committed
skip metrics tests on emulator
1 parent 742b6a3 commit 3b326c6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/google-cloud-bigtable/tests/system/data/test_metrics_async.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def __getattr__(self, name):
136136

137137

138138
@CrossSync.convert_class(sync_name="TestMetrics")
139+
@pytest.mark.skipif(
140+
bool(os.environ.get(BIGTABLE_EMULATOR)),
141+
reason="Emulator does not support metrics",
142+
)
139143
class TestMetricsAsync(SystemTestRunner):
140144
def _make_client(self):
141145
project = os.getenv("GOOGLE_CLOUD_PROJECT") or None

packages/google-cloud-bigtable/tests/system/data/test_metrics_autogen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def __getattr__(self, name):
116116
return response
117117

118118

119+
@pytest.mark.skipif(
120+
bool(os.environ.get(BIGTABLE_EMULATOR)), reason="Emulator does not support metrics"
121+
)
119122
class TestMetrics(SystemTestRunner):
120123
def _make_client(self):
121124
project = os.getenv("GOOGLE_CLOUD_PROJECT") or None

0 commit comments

Comments
 (0)