Skip to content

Commit

Permalink
TST: Add missing methods to dummy serial port
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed May 30, 2023
1 parent 179cc7c commit 74f952e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion data_gateway/dummy_serial/dummy_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ def set_buffer_size(self, rx_size=4096, tx_size=None):
"""
pass

def reset_input_buffer(self):
pass

def reset_output_buffer(self):
pass

def open(self):
"""Open the dummy serial port"""
logger.debug("Opening port")
Expand Down Expand Up @@ -163,7 +169,6 @@ def in_waiting(self):
return len(self._waiting_data)

def _check_response(self, data_in):

data_out = constants.NO_DATA_PRESENT
if data_in in self.responses:
data_out = self.responses[data_in]
Expand Down

0 comments on commit 74f952e

Please sign in to comment.