Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit b2f0d46

Browse files
author
Takashi Matsuo
authored
testing: replace @flaky with @pytest.mark.flaky [(#3496)](GoogleCloudPlatform/python-docs-samples#3496)
* testing: replace @flaky with @pytest.mark.flaky * lint * mark few tests as flaky that involves LRO polling. * lint
1 parent 567482a commit b2f0d46

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

samples/snippets/v3/api-client/list_resources_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import os
2424
import re
2525

26-
from flaky import flaky
2726
import googleapiclient.discovery
2827
import pytest
2928

@@ -38,7 +37,7 @@ def client():
3837
return googleapiclient.discovery.build('monitoring', 'v3')
3938

4039

41-
@flaky
40+
@pytest.mark.flaky
4241
def test_list_monitored_resources(client, capsys):
4342
PROJECT_RESOURCE = "projects/{}".format(PROJECT)
4443
list_resources.list_monitored_resource_descriptors(
@@ -49,7 +48,7 @@ def test_list_monitored_resources(client, capsys):
4948
assert regex.search(stdout) is not None
5049

5150

52-
@flaky
51+
@pytest.mark.flaky
5352
def test_list_metrics(client, capsys):
5453
PROJECT_RESOURCE = "projects/{}".format(PROJECT)
5554
list_resources.list_metric_descriptors(
@@ -60,7 +59,7 @@ def test_list_metrics(client, capsys):
6059
assert regex.search(stdout) is not None
6160

6261

63-
@flaky
62+
@pytest.mark.flaky
6463
def test_list_timeseries(client, capsys):
6564
PROJECT_RESOURCE = "projects/{}".format(PROJECT)
6665
list_resources.list_timeseries(

0 commit comments

Comments
 (0)