Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ async def test_before_model_request_no_match(
)
result = await capability.before_model_request(mocker.Mock(), request_context)
assert result is request_context
assert req.parts[0].content == "safe text"
part = req.parts[0]
assert isinstance(part, UserPromptPart)
assert part.content == "safe text"

@pytest.mark.asyncio()
async def test_after_model_request_redacts_response(
Expand Down
Loading