mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 21:14:17 +02:00
fix: use raw strings for regex in pytest.raises match
This commit is contained in:
parent
a40e6ad2f3
commit
3465166106
1 changed files with 2 additions and 2 deletions
|
|
@ -428,13 +428,13 @@ async def test_fn_with_kwargs_dropped_args_not_in_kwargs(add_tool):
|
|||
|
||||
async def test_forward_outside_context_raises_error():
|
||||
"""Test that forward() raises error when called outside transform context."""
|
||||
with pytest.raises(RuntimeError, match="forward\(\) can only be called"):
|
||||
with pytest.raises(RuntimeError, match=r"forward\(\) can only be called"):
|
||||
await forward(x=1)
|
||||
|
||||
|
||||
async def test_forward_raw_outside_context_raises_error():
|
||||
"""Test that forward_raw() raises error when called outside transform context."""
|
||||
with pytest.raises(RuntimeError, match="forward_raw\(\) can only be called"):
|
||||
with pytest.raises(RuntimeError, match=r"forward_raw\(\) can only be called"):
|
||||
await forward_raw(x=1)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue