Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 35378f5

Browse files
committed
fixed regex
1 parent 25bb181 commit 35378f5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

owlbot.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,11 @@ def get_staging_dirs(
127127
# fix tests
128128
s.replace(
129129
"tests/unit/gapic/bigtable_v2/test_bigtable.py",
130-
'gapic_v1\.routing_header\.to_grpc_metadata\(expected_headers\) in kw["metadata"]',
130+
'assert \(\n\s*gapic_v1\.routing_header\.to_grpc_metadata\(expected_headers\) in kw\["metadata"\]\n.*',
131131
"""
132-
# assert the expected headers are present, in any order
133-
routing_string = next(iter([m[1] for m in kw["metadata"] if m[0] == 'x-goog-request-params']))
134-
assert all(
135-
[f"{k}={v}" for k,v in expected_headers.items() in routing_string]
136-
)
132+
# assert the expected headers are present, in any order
133+
routing_string = next(iter([m[1] for m in kw["metadata"] if m[0] == 'x-goog-request-params']))
134+
assert all([f"{k}={v}" in routing_string for k,v in expected_headers.items()])
137135
"""
138136
)
139137
s.replace(

0 commit comments

Comments
 (0)