mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
Add a test script for testing the signalreceiver
This commit is contained in:
parent
00ed73f453
commit
4ab3577172
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…
x
Reference in New Issue
Block a user