1. Bernhard Biskup
  2. araldo

Commits

bb b...@gmx.de  committed 01a666e Draft

new test

  • Participants
  • Parent commits 0664746
  • Branches default

Comments (0)

Files changed (1)

File test/server_test.py

View file
  • Ignore whitespace
 from mock import Mock, patch
 from araldo.server import (
     start_server, setup_logging, setup_sending,
-    setup_signals, sig_handler)
+    setup_signals, sig_handler, setup_plugins)
 from gevent.queue import Queue
 from araldo import server
 from araldo.plugins import PluginManager
     return PluginManager.create(config)
 
 
-def test_server(queue):
+def test_server(plugin_manager, queue):
     start_mock = Mock()
     start_server(9000, queue, start_mock)
     assert start_mock.called
         setup_signals()
 
 
+def test_setup_plugins(conf1_name):
+    config = Config(conf1_name)
+    logger = Mock()
+    setup_plugins(logger, config)
+
+
 def test_sig_handler():
     with patch.object(server.sys, "exit") as ex:
         sig_handler(None, None)