Skip to content

Commit b62e121

Browse files
committed
test(api-core): use re.fullmatch for strict UUID validation
1 parent 14447fb commit b62e121

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-api-core/tests/unit/gapic/test_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ def test_setup_request_id(request_obj, is_proto3_optional, expected):
110110
)
111111

112112
if expected == "uuid":
113-
assert re.match(UUID_REGEX, value)
113+
assert re.fullmatch(UUID_REGEX, value)
114114
else:
115115
assert value == expected

0 commit comments

Comments
 (0)