From 4bc902a2cc80dcaf39b338feb36f2a1c3aa28463 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" <robin.mueller.m@gmail.com> Date: Mon, 16 Mar 2020 21:38:04 +0100 Subject: [PATCH] some more comments --- test/OBSW_UnitTest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/OBSW_UnitTest.py b/test/OBSW_UnitTest.py index c4a4714..e62c827 100644 --- a/test/OBSW_UnitTest.py +++ b/test/OBSW_UnitTest.py @@ -80,13 +80,14 @@ class TestService(unittest.TestCase): # This function should be called in each individual test to send the actual telecommands # which are stored inside testQueue def performTestingAndGenerateAssertionDict(self): + # Maybe we should instantiate this once in the main and then reuse it instead of calling the constructor + # over and over again. UnitTester = MultipleCommandSenderReceiver( comInterface=self.communicationInterface, tmtcPrinter=self.tmtcPrinter, tmListener=self.tmListener, tcQueue=self.testQueue, tmTimeout=self.tmTimeout, waitIntervals=self.waitIntervals, waitTime=self.waitTime, printTm=self.printTm, tcTimeoutFactor=self.tcTimeoutFactor, doPrintToFile=self.printFile) (tcInfoQueue, tmInfoQueue) = UnitTester.sendTcQueueAndReturnInfo() assertionDict = self.analyseTmTcInfo(tmInfoQueue, tcInfoQueue) - # UnitTester.clearListenerTmInfoQueue() return assertionDict def analyseTmTcInfo(self, tmInfoQueue: pusTmInfoQueueT, tcInfoQueue: pusTcInfoQueueT) -> dict: -- GitLab