Lot of refactoring and tests. Maybe all this will be veverted but the code still runs

This commit is contained in:
Johannes Findeisen 2021-11-14 01:09:39 +01:00
commit 6ec071287f
12 changed files with 228 additions and 214 deletions

View file

@ -6,13 +6,13 @@ Daemon testing file... Daemons in Python are new to me because I only worked on
Let's have some fun... :)
"""
from daemon import Daemon
from uplink.daemon import Daemon
class Test(Daemon):
def __init__(self, pid_file, color, size):
# super().__init__(pid_file)
super().__init__(pid_file)
self.pid_file = pid_file
self.color = color
self.size = size
@ -22,5 +22,5 @@ class Test(Daemon):
return
Test = Test("/tmp/uplink.pid", "Red", "XXL")
Test.start()
test = Test("/tmp/uplink.pid", "Red", "XXL")
test.start()