Skip to content

Commit 0537a48

Browse files
kweinmeistertelpirion
authored andcommitted
fix: vision test failures (#9172)
Fixes #8779 Fixes #8829
1 parent 8de7e07 commit 0537a48

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

vision/AUTHORING_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md
1+
See <https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md>

vision/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md
1+
See <https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md>

vision/snippets/detect/detect_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import os
16+
import re
1617
import uuid
1718

1819
import backoff
@@ -165,7 +166,7 @@ def run_sample():
165166

166167
run_sample()
167168
out, _ = capsys.readouterr()
168-
assert 'best guess label: palace of fine arts' in out.lower()
169+
assert re.search(r'best guess label:.*palace of fine arts', out, re.DOTALL | re.I)
169170

170171

171172
def test_detect_web_uri(capsys):
@@ -178,7 +179,7 @@ def run_sample():
178179

179180
run_sample()
180181
out, _ = capsys.readouterr()
181-
assert 'best guess label: palace of fine arts' in out.lower()
182+
assert re.search(r'best guess label:.*palace of fine arts', out, re.DOTALL | re.I)
182183

183184

184185
def test_detect_web_with_geo(capsys):

0 commit comments

Comments
 (0)