Completely drop RootModel from types module (#1910)
This commit is contained in:
parent
f4672c5084
commit
5fdd48a0d3
1 changed files with 640 additions and 800 deletions
|
|
@ -60,7 +60,7 @@ async def test_server_session_initialize():
|
|||
raise message
|
||||
|
||||
if isinstance(message, ClientNotification) and isinstance(
|
||||
message.root, InitializedNotification
|
||||
message, InitializedNotification
|
||||
): # pragma: no branch
|
||||
received_initialized = True
|
||||
return
|
||||
|
|
@ -158,7 +158,7 @@ async def test_server_session_initialize_with_older_protocol_version():
|
|||
raise message
|
||||
|
||||
if isinstance(message, types.ClientNotification) and isinstance(
|
||||
message.root, InitializedNotification
|
||||
message, InitializedNotification
|
||||
): # pragma: no branch
|
||||
received_initialized = True
|
||||
return
|
||||
|
|
@ -236,11 +236,11 @@ async def test_ping_request_before_initialization():
|
|||
|
||||
# We should receive a ping request before initialization
|
||||
if isinstance(message, RequestResponder) and isinstance(
|
||||
message.request.root, types.PingRequest
|
||||
message.request, types.PingRequest
|
||||
): # pragma: no branch
|
||||
# Respond to the ping
|
||||
with message:
|
||||
await message.respond(types.ServerResult(types.EmptyResult()))
|
||||
await message.respond(types.EmptyResult())
|
||||
return
|
||||
|
||||
async def mock_client():
|
||||
|
|
|
|||
Loading…
Reference in a new issue