@@ -17,7 +17,7 @@ async def test_success(plugin, read, write):
1717 "id" : "3" ,
1818 "method" : "init_authentication"
1919 }
20- read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" )]
20+ read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" , 10 )]
2121 plugin .authenticate .return_value = async_return_value (Authentication ("132" , "Zenek" ))
2222 await plugin .run ()
2323 plugin .authenticate .assert_called_with ()
@@ -55,7 +55,7 @@ async def test_failure(plugin, read, write, error, code, message):
5555 "method" : "init_authentication"
5656 }
5757
58- read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" )]
58+ read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" , 10 )]
5959 plugin .authenticate .side_effect = error ()
6060 await plugin .run ()
6161 plugin .authenticate .assert_called_with ()
@@ -84,7 +84,7 @@ async def test_stored_credentials(plugin, read, write):
8484 }
8585 }
8686 }
87- read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" )]
87+ read .side_effect = [async_return_value (create_message (request )), async_return_value (b"" , 10 )]
8888 plugin .authenticate .return_value = async_return_value (Authentication ("132" , "Zenek" ))
8989 await plugin .run ()
9090 plugin .authenticate .assert_called_with (stored_credentials = {"token" : "ABC" })
0 commit comments