diff options
Diffstat (limited to 'deluge/ui/console/__init__.py')
-rw-r--r-- | deluge/ui/console/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deluge/ui/console/__init__.py b/deluge/ui/console/__init__.py index 7da04a6..a09d936 100644 --- a/deluge/ui/console/__init__.py +++ b/deluge/ui/console/__init__.py @@ -12,5 +12,13 @@ UI_PATH = __path__[0] def start(): + Console().start() + +def test_start(): + """Entry point for tests + + A workaround for unit tests which require a deferred object to be + returned to run properly due to mocking the Twisted reactor. + """ return Console().start() |