mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Update test_resource_template.py
This commit is contained in:
parent
4e076c7c8f
commit
f2c5f0d708
1 changed files with 7 additions and 0 deletions
|
|
@ -436,3 +436,10 @@ class TestMatchUriTemplate:
|
|||
uri_template = "test://a/{x*}/{y}"
|
||||
result = match_uri_template(uri=uri, uri_template=uri_template)
|
||||
assert result == {"x": "x/y", "y": "b"}
|
||||
|
||||
def test_match_consecutive_params(self):
|
||||
"""Test that consecutive parameters without a / are not matched."""
|
||||
uri = "test://a/x/y"
|
||||
uri_template = "test://a/{x}{y}"
|
||||
result = match_uri_template(uri=uri, uri_template=uri_template)
|
||||
assert result is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue