Ask Solem преди 9 години
родител
ревизия
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',
             )