@@ -29,9 +29,10 @@ def mocked_read_status():
29
29
return mock .DEFAULT
30
30
31
31
pinger = BedrockServerStatus (Address ("localhost" , 25565 ))
32
- with mock .patch .object (pinger , "_read_status" ) as mocked_read , mock .patch .object (
33
- pinger , "parse_response"
34
- ) as mocked_parse_response :
32
+ with (
33
+ mock .patch .object (pinger , "_read_status" ) as mocked_read ,
34
+ mock .patch .object (pinger , "parse_response" ) as mocked_parse_response ,
35
+ ):
35
36
mocked_read .side_effect = mocked_read_status
36
37
37
38
pinger .read_status ()
@@ -50,9 +51,10 @@ def mocked_read_status():
50
51
return mock .DEFAULT
51
52
52
53
pinger = BedrockServerStatus (Address ("localhost" , 25565 ))
53
- with mock .patch .object (pinger , "_read_status_async" ) as mocked_read , mock .patch .object (
54
- pinger , "parse_response"
55
- ) as mocked_parse_response :
54
+ with (
55
+ mock .patch .object (pinger , "_read_status_async" ) as mocked_read ,
56
+ mock .patch .object (pinger , "parse_response" ) as mocked_parse_response ,
57
+ ):
56
58
mocked_read .side_effect = mocked_read_status
57
59
58
60
await pinger .read_status_async ()
0 commit comments