@@ -45,14 +45,6 @@ def test_open_serial_timedraw(socketio):
45
45
general_test_serial (socketio , "timedraw" )
46
46
47
47
48
- @pytest .mark .skipif (
49
- running_on_ci (),
50
- reason = "VMs have no serial ports" ,
51
- )
52
- def test_open_serial_timedbinary (socketio ):
53
- general_test_serial (socketio , "timedbinary" )
54
-
55
-
56
48
def general_test_serial (socketio , buffertype ):
57
49
port = "/dev/ttyACM0"
58
50
global message
@@ -75,7 +67,7 @@ def general_test_serial(socketio, buffertype):
75
67
# check if the send command has been registered
76
68
assert any ("send " + port + " /\" ciao/\" " in i for i in message )
77
69
#check if message has been sent back by the connected board
78
- if buffertype in ( "timedbinary" , " timedraw") :
70
+ if buffertype == " timedraw" :
79
71
output = decode_output (extract_serial_data (message ))
80
72
elif buffertype in ("default" , "timed" ):
81
73
output = extract_serial_data (message )
@@ -89,7 +81,7 @@ def general_test_serial(socketio, buffertype):
89
81
print (message )
90
82
# check if the send command has been registered
91
83
assert any ("send " + port + " /\" π§π§π§π§π§π§π§π§π§π§/\" " in i for i in message )
92
- if buffertype in ( "timedbinary" , " timedraw") :
84
+ if buffertype == " timedraw" :
93
85
output = decode_output (extract_serial_data (message ))
94
86
elif buffertype in ("default" , "timed" ):
95
87
output = extract_serial_data (message )
0 commit comments