mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-29 13:38:33 +00:00
Add a test script for testing the signalreceiver
This commit is contained in:
parent
00ed73f453
commit
4ab3577172
1 changed files with 9 additions and 0 deletions
9
deluge/tests/test_signalreceiver.py
Normal file
9
deluge/tests/test_signalreceiver.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from deluge.configmanager import ConfigManager
|
||||
import deluge.xmlrpclib as xmlrpclib
|
||||
|
||||
config = ConfigManager("gtkui.conf")
|
||||
|
||||
client = xmlrpclib.ServerProxy("http://localhost:" + str(config["signal_port"]))
|
||||
|
||||
client.emit_signal("torrent_finished", "abc123")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue