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()
|
||||
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
|
||||
if __name__ == "__main__":
|
||||
# TODO This should be a test suite for this library
|
||||
import RPi.GPIO as GPIO
|
||||
import sys
|
||||
|
||||
|
|
|
@ -165,3 +165,9 @@ class MQTT_Client:
|
|||
logger.info(f"Shutting down mqtt client {self.name}")
|
||||
self.client.loop_stop()
|
||||
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()
|
||||
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
|
||||
if __name__ == "__main__":
|
||||
# TODO This should be a test suite for this library
|
||||
# Starts the stepper thread for actuators
|
||||
# This needs to be in a threading or multiprocessing wrapper
|
||||
stepper_thread = StepperProcess()
|
||||
|
|
Loading…
Reference in a new issue