@@ -27,18 +27,18 @@ def mock_dcs():
27
27
server .listen (1 )
28
28
conn , _ = server .accept ()
29
29
print ("send all" )
30
- conn .sendall (b'{"version":11 , "id":"foobar"}' )
30
+ conn .sendall (b'{"version":12 , "id":"foobar"}' )
31
31
assert (
32
32
conn .recv (1024 ) == b"{"
33
- b'"mode":"Intercept","version":11,"InterceptionMode ":"Pre","Channels ":["HTTP","Telnet",'
34
- b'"File","USB","Aux","Trigger","Queue","LCD","SBC","Daemon","Aux2","AutoPause ","Unknown"],'
35
- b'"Filters ":null,"PriorityCodes ":false'
33
+ b'"mode":"Intercept","version":12,"interceptionMode ":"Pre","channels ":["HTTP","Telnet",'
34
+ b'"File","USB","Aux","Trigger","Queue","LCD","SBC","Daemon","Aux2","Autopause ","Unknown"],'
35
+ b'"filters ":null,"priorityCodes ":false'
36
36
b"}"
37
37
)
38
38
conn .sendall (b'{"success":true}' )
39
39
conn .sendall (
40
40
b"{"
41
- b'"connection":{"id":12,"apiVersion":10 ,"isConnected":true},"sourceConnection":12,'
41
+ b'"connection":{"id":12,"apiVersion":12 ,"isConnected":true},"sourceConnection":12,'
42
42
b'"result":null,"type":"M","channel":"HTTP","lineNumber":null,"indent":0,"keyword":0,'
43
43
b'"keywordArgument":null,"majorNumber":1234,"minorNumber":null,"flags":2048,"comment":null,'
44
44
b'"filePosition":null,"length":6,"parameters":[],"command":"Code"'
@@ -49,7 +49,7 @@ def mock_dcs():
49
49
assert conn .recv (1024 ) == b'{"command":"Resolve","Type":0,"Content":null}'
50
50
conn .sendall (
51
51
b"{"
52
- b'"connection":{"id":12,"apiVersion":10 ,"isConnected":true},"sourceConnection":12,'
52
+ b'"connection":{"id":12,"apiVersion":12 ,"isConnected":true},"sourceConnection":12,'
53
53
b'"result":null,"type":"M","channel":"HTTP","lineNumber":null,"indent":0,"keyword":0,'
54
54
b'"keywordArgument":null,"majorNumber":5678,"minorNumber":null,"flags":2048,"comment":null,'
55
55
b'"filePosition":null,"length":6,"parameters":[],"command":"Code"'
0 commit comments