Skip to content

fix: vision test failures #9172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vision/AUTHORING_GUIDE.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md
See <https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md>
2 changes: 1 addition & 1 deletion vision/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md
See <https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md>
5 changes: 3 additions & 2 deletions vision/snippets/detect/detect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import os
import re
import uuid

import backoff
Expand Down Expand Up @@ -165,7 +166,7 @@ def run_sample():

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


def test_detect_web_uri(capsys):
Expand All @@ -178,7 +179,7 @@ def run_sample():

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


def test_detect_web_with_geo(capsys):
Expand Down