Skip to content

Commit 893b31b

Browse files
author
Takashi Matsuo
authored
[vision] fix: mark a test as flaky [(#3709)](GoogleCloudPlatform/python-docs-samples#3709)
fixes #3702
1 parent 974370a commit 893b31b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
flaky==3.6.1
12
pytest==5.3.2

samples/snippets/web/web_detect_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import pytest
16+
1517
import web_detect
1618

1719
ASSET_BUCKET = "cloud-samples-data"
@@ -24,6 +26,7 @@ def test_detect_file(capsys):
2426
assert 'description' in out.lower()
2527

2628

29+
@pytest.mark.flaky(max_runs=3, min_passes=1)
2730
def test_detect_web_gsuri(capsys):
2831
file_name = ('gs://{}/vision/landmark/pofa.jpg'.format(
2932
ASSET_BUCKET))

0 commit comments

Comments
 (0)