Skip to content

Commit be7b222

Browse files
claude[bot]jope-bm
andcommitted
fix: Update test to use correct type='entity' after discriminated union changes
The test was using type='file' for EntitySummary but after the discriminated union changes, EntitySummary now has type: Literal['entity'] = 'entity'. Co-authored-by: jope-bm <jope-bm@users.noreply.github.com>
1 parent 223b0fe commit be7b222

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/mcp/test_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_prompt_context_with_file_path_no_permalink():
116116

117117
# Create a mock context with a file that has no permalink (like a binary file)
118118
test_entity = EntitySummary(
119-
type="file",
119+
type="entity",
120120
title="Test File",
121121
permalink=None, # No permalink
122122
file_path="test_file.pdf",

0 commit comments

Comments
 (0)