Lot of refactoring and tests. Maybe all this will be veverted but the code still runs
This commit is contained in:
parent
9d200a5942
commit
6ec071287f
12 changed files with 228 additions and 214 deletions
8
test.py
8
test.py
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue