Ask Solem 9 лет назад
Родитель
Сommit
62d15a08ce
1 измененных файлов с 5 добавлено и 3 удалено
  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',
             )