Ask Solem hace 9 años
padre
commit
62d15a08ce
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5 3
      celery/tests/bin/test_celeryd_detach.py

+ 5 - 3
celery/tests/bin/test_celeryd_detach.py

@@ -48,10 +48,12 @@ if not IS_WINDOWS:
 
             self.patch('celery.current_app')
             from celery import current_app
-            r = detach('/bin/boo', ['a', 'b', 'c'],
-                       logfile='/var/log', pidfile='/var/pid', app=None)
+            r = detach(
+                '/bin/boo', ['a', 'b', 'c'],
+                logfile='/var/log', pidfile='/var/pid',
+                hostname='foo@example.com', app=None)
             current_app.log.setup_logging_subsystem.assert_called_with(
-                'ERROR', '/var/log',
+                'ERROR', '/var/log', hostname='foo@example.com',
             )