Skip to content

Commit 7251227

Browse files
committed
Fixed tests
1 parent ccf0c12 commit 7251227

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/senaite/astm/adapters/biomerieux/mini_vidas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def handle_data(self):
111111
self.protocol.messages = messages
112112

113113
# end the communicaiton
114-
# self.protocol.on_eot(EOT)
114+
self.protocol.on_eot(EOT)
115115

116116

117117
# register the adapter

src/senaite/astm/codec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def decode_message(message, encoding=ENCODING):
9595
frame, cs = frame_cs[:-2], frame_cs[-2:]
9696
# validate the checksum
9797
ccs = make_checksum(frame)
98-
assert cs.upper() == ccs, "Checksum failure: expected %r, got %r" % (cs, ccs)
98+
assert cs.upper() == ccs, "Checksum wrong: expected %r, got %r" % (cs, ccs)
9999
seq, records = decode_frame(frame, encoding)
100100
return seq, records, cs.decode()
101101

0 commit comments

Comments
 (0)