15
0
forked from pool/python-flower
Files
python-flower/flower-test_control.diff

17 lines
709 B
Diff
Raw Normal View History

--- flower-0.8.3/tests/api/test_control.py 2015-04-05 02:09:44.000000000 +0200
+++ flower-0.8.4/tests/api/test_control.py 2016-01-19 02:55:07.000000000 +0100
@@ -34,7 +34,12 @@ def test_pool_restart(self):
celery.control.broadcast = MagicMock(return_value=[{'test': 'ok'}])
r = self.post('/api/worker/pool/restart/test', body={})
self.assertEqual(200, r.code)
- celery.control.broadcast.assert_called_once()
+ celery.control.broadcast.assert_called_once_with(
+ 'pool_restart',
+ arguments={'reload': False},
+ destination=['test'],
+ reply=True,
+ )
def test_pool_grow(self):
celery = self._app.capp