python: reminder to add tests
This commit is contained in:
parent
1a42f05941
commit
e89cbdc2aa
|
@ -526,3 +526,8 @@ class ImagerProcess(multiprocessing.Process):
|
||||||
# self.streaming_thread.kill()
|
# self.streaming_thread.kill()
|
||||||
logger.success("Imager process shut down! See you!")
|
logger.success("Imager process shut down! See you!")
|
||||||
|
|
||||||
|
|
||||||
|
# This is called if this script is launched directly
|
||||||
|
if __name__ == "__main__":
|
||||||
|
# TODO This should be a test suite for this library
|
||||||
|
pass
|
|
@ -90,6 +90,7 @@ def light(state):
|
||||||
|
|
||||||
# This is called if this script is launched directly
|
# This is called if this script is launched directly
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
# TODO This should be a test suite for this library
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -165,3 +165,9 @@ class MQTT_Client:
|
||||||
logger.info(f"Shutting down mqtt client {self.name}")
|
logger.info(f"Shutting down mqtt client {self.name}")
|
||||||
self.client.loop_stop()
|
self.client.loop_stop()
|
||||||
logger.debug(f"Mqtt client {self.name} shut down")
|
logger.debug(f"Mqtt client {self.name} shut down")
|
||||||
|
|
||||||
|
|
||||||
|
# This is called if this script is launched directly
|
||||||
|
if __name__ == "__main__":
|
||||||
|
# TODO This should be a test suite for this library
|
||||||
|
pass
|
|
@ -361,3 +361,8 @@ class SegmenterProcess(multiprocessing.Process):
|
||||||
self.segmenter_client.shutdown()
|
self.segmenter_client.shutdown()
|
||||||
logger.success("Segmenter process shut down! See you!")
|
logger.success("Segmenter process shut down! See you!")
|
||||||
|
|
||||||
|
|
||||||
|
# This is called if this script is launched directly
|
||||||
|
if __name__ == "__main__":
|
||||||
|
# TODO This should be a test suite for this library
|
||||||
|
pass
|
|
@ -523,6 +523,7 @@ class StepperProcess(multiprocessing.Process):
|
||||||
|
|
||||||
# This is called if this script is launched directly
|
# This is called if this script is launched directly
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
# TODO This should be a test suite for this library
|
||||||
# Starts the stepper thread for actuators
|
# Starts the stepper thread for actuators
|
||||||
# This needs to be in a threading or multiprocessing wrapper
|
# This needs to be in a threading or multiprocessing wrapper
|
||||||
stepper_thread = StepperProcess()
|
stepper_thread = StepperProcess()
|
||||||
|
|
Loading…
Reference in a new issue