Skip to content

Commit 41fcd6f

Browse files
committed
added test case
1 parent 2c541e5 commit 41fcd6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/google-api-core/tests/unit/test_path_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ def test_path_traversal_dots_validation_bare_double_star(
827827
("projects/{project=**}", "projects/(.+)", ("**",)),
828828
("projects/{project=locations/*}", "projects/locations/([^/]+)", ("*",)),
829829
("projects/*/locations/**", "projects/([^/]+)/locations/(.+)", ("*", "**")),
830+
("projects/abc", "projects/abc", ()),
831+
("projects/my-project", r"projects/my\-project", ()),
830832
],
831833
)
832834
def test_build_capture_pattern(template_str, expected_pattern, expected_wildcards):

0 commit comments

Comments
 (0)