Skip to content

Commit 397569a

Browse files
author
Agasthya Kasturi
committed
fix mismatch
1 parent 01025ea commit 397569a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/server/fastmcp/resources/test_resource_template.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ def valid_func(key: str, optional: str = "default") -> str:
9797
def invalid_func(key: str, value: str) -> str:
9898
return f"{key}-{value}"
9999

100-
with pytest.raises(ValueError, match="Mismatch between URI path parameters"):
100+
with pytest.raises(
101+
ValueError,
102+
match="Mismatch between URI path parameters .* and "
103+
"required function parameters .*",
104+
):
101105
ResourceTemplate.from_function(
102106
fn=invalid_func,
103107
uri_template="test://{key}",

0 commit comments

Comments
 (0)