Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 06a8848

Browse filesBrowse files
author
Takashi Matsuo
authored
[translate] fix: mark some tests as flaky (GoogleCloudPlatform#3495)
tests which involve LRO. fixes GoogleCloudPlatform#2875
1 parent b2ae542 commit 06a8848
Copy full SHA for 06a8848

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎translate/cloud-client/beta_snippets_test.py

Copy file name to clipboardExpand all lines: translate/cloud-client/beta_snippets_test.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def test_translate_text(capsys):
6767
assert 'Translated Text:' in out
6868

6969

70+
@pytest.mark.flaky(max_runs=3, min_passes=1)
7071
def test_batch_translate_text(capsys, bucket):
7172
beta_snippets.batch_translate_text(
7273
PROJECT_ID,
@@ -96,6 +97,7 @@ def test_list_languages_with_target(capsys):
9697
assert u'Display Name: albanska' in out
9798

9899

100+
@pytest.mark.flaky(max_runs=3, min_passes=1)
99101
def test_create_glossary(capsys, unique_glossary_id):
100102
beta_snippets.create_glossary(PROJECT_ID, unique_glossary_id)
101103
out, _ = capsys.readouterr()
@@ -125,6 +127,7 @@ def test_translate_text_with_glossary(capsys, glossary):
125127
assert 'cuenta' in out
126128

127129

130+
@pytest.mark.flaky(max_runs=3, min_passes=1)
128131
def test_delete_glossary(capsys, unique_glossary_id):
129132
beta_snippets.create_glossary(PROJECT_ID, unique_glossary_id)
130133
beta_snippets.delete_glossary(PROJECT_ID, unique_glossary_id)
+1Lines 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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.