Skip to content

Commit c0459c9

Browse files
brendanlundytseaver
authored andcommitted
Flatten case of logo text in systest. (#9159)
1 parent f5868a6 commit c0459c9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

vision/tests/system.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_detect_logos_content(self):
8181

8282
# Check to ensure we got what we expect.
8383
assert len(response.logo_annotations) == 1
84-
assert response.logo_annotations[0].description == "google"
84+
assert response.logo_annotations[0].description.lower() == "google"
8585

8686
def test_detect_logos_file_handler(self):
8787
# Get a file handler, and make the request using it.
@@ -90,15 +90,15 @@ def test_detect_logos_file_handler(self):
9090

9191
# Check to ensure we got what we expect.
9292
assert len(response.logo_annotations) == 1
93-
assert response.logo_annotations[0].description == "google"
93+
assert response.logo_annotations[0].description.lower() == "google"
9494

9595
def test_detect_logos_filename(self):
9696
# Make the request with the filename directly.
9797
response = self.client.logo_detection({"source": {"filename": LOGO_FILE}})
9898

9999
# Check to ensure we got what we expect.
100100
assert len(response.logo_annotations) == 1
101-
assert response.logo_annotations[0].description == "google"
101+
assert response.logo_annotations[0].description.lower() == "google"
102102

103103
def test_detect_logos_gcs(self):
104104
# Upload the image to Google Cloud Storage.
@@ -121,7 +121,7 @@ def test_detect_logos_gcs(self):
121121

122122
# Check the response.
123123
assert len(response.logo_annotations) == 1
124-
assert response.logo_annotations[0].description == "google"
124+
assert response.logo_annotations[0].description.lower() == "google"
125125

126126
def test_detect_logos_async(self):
127127
# Upload the image to Google Cloud Storage.
@@ -177,7 +177,7 @@ def test_detect_logos_async(self):
177177
assert len(responses) == 1
178178
logo_annotations = responses[0]["logoAnnotations"]
179179
assert len(logo_annotations) == 1
180-
assert logo_annotations[0]["description"] == "google"
180+
assert logo_annotations[0]["description"].lower() == "google"
181181

182182

183183
class TestVisionClientFiles(VisionSystemTestBase):

0 commit comments

Comments
 (0)