refactor: use snake case instead of camel case in types (#1894)
This commit is contained in:
parent
7080fcf1e6
commit
e94b386a13
1 changed files with 1063 additions and 1057 deletions
|
|
@ -45,7 +45,7 @@ async def test_read_resource_text(temp_file: Path):
|
|||
content = result.root.contents[0]
|
||||
assert isinstance(content, types.TextResourceContents)
|
||||
assert content.text == "Hello World"
|
||||
assert content.mimeType == "text/plain"
|
||||
assert content.mime_type == "text/plain"
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
@ -71,7 +71,7 @@ async def test_read_resource_binary(temp_file: Path):
|
|||
|
||||
content = result.root.contents[0]
|
||||
assert isinstance(content, types.BlobResourceContents)
|
||||
assert content.mimeType == "application/octet-stream"
|
||||
assert content.mime_type == "application/octet-stream"
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
@ -103,4 +103,4 @@ async def test_read_resource_default_mime(temp_file: Path):
|
|||
content = result.root.contents[0]
|
||||
assert isinstance(content, types.TextResourceContents)
|
||||
assert content.text == "Hello World"
|
||||
assert content.mimeType == "text/plain"
|
||||
assert content.mime_type == "text/plain"
|
||||
|
|
|
|||
Loading…
Reference in a new issue