Skip to content

Commit aa9dbb4

Browse files
committed
Removed tests. TODO: implement proper pytest
1 parent 7092f6c commit aa9dbb4

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/communication.py

-35
Original file line numberDiff line numberDiff line change
@@ -221,38 +221,3 @@ def writeData(self, data: str):
221221
def getReceivedData(self) -> list:
222222
receivedData = self._rxWatcher.getAllReceivedData()
223223
self.sigDataReceived.emit(receivedData)
224-
225-
226-
def test_controlWithSignals(serialSettings: serComm.SerialCommSettings):
227-
# TODO
228-
lowLevelInterface = SerialToolPortHandler(serialSettings)
229-
230-
endAppTimer = QtCore.QTimer(app)
231-
endAppTimer.setSingleShot(True)
232-
endAppTimer.timeout.connect(app.quit)
233-
endAppTimer.start(4000)
234-
235-
lowLevelInterface.sigInitRequest.emit() # lowLevelInterface.initPortAndReceiveThread()
236-
txData = '123456789'
237-
# lowLevelInterface.sigWrite.emit(txData)
238-
239-
endAppTimer = QtCore.QTimer(app)
240-
endAppTimer.setSingleShot(False)
241-
endAppTimer.timeout.connect(lambda: lowLevelInterface.writeData(txData))
242-
lowLevelInterface.sigWrite.emit(txData)
243-
endAppTimer.start(500)
244-
245-
app.exec_()
246-
247-
lowLevelInterface.sigDeinitRequest.emit()
248-
249-
250-
if __name__ == "__main__":
251-
# enable user to run this as a subprocess, thread or command line utility
252-
serialSettings = serComm.SerialCommSettings()
253-
serialSettings.port = 'COM4'
254-
serialSettings.baudrate = 115200
255-
256-
#app = QtCore.QCoreApplication([])
257-
258-
# test_controlWithSignals(serialSettings)

0 commit comments

Comments
 (0)