Skip to content

Commit e73e600

Browse files
test(fastmcp): Stop accessing non-existent attribute (#5338)
1 parent e0d42b9 commit e73e600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrations/fastmcp/test_fastmcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ def code_help_prompt(language: str):
606606

607607
# Check PII-sensitive data
608608
if send_default_pii and include_prompts:
609-
assert SPANDATA.MCP_PROMPT_CONTENT in span["data"]
609+
assert SPANDATA.MCP_PROMPT_RESULT_MESSAGE_CONTENT in span["data"]
610610
else:
611-
assert SPANDATA.MCP_PROMPT_CONTENT not in span["data"]
611+
assert SPANDATA.MCP_PROMPT_RESULT_MESSAGE_CONTENT not in span["data"]
612612
except AttributeError:
613613
# Prompt handler not supported in this version
614614
pytest.skip("Prompt handlers not supported in this FastMCP version")

0 commit comments

Comments
 (0)