Esempio n. 1
0
 def test_compat_multi(self):
     with patch('celery.__main__.maybe_patch_concurrency') as mpc:
         with patch('celery.__main__._warn_deprecated') as depr:
             with patch('celery.bin.multi.main') as main:
                 __main__._compat_multi()
                 mpc.assert_called_with()
                 depr.assert_called_with('celery multi')
                 main.assert_called_with()
Esempio n. 2
0
 def test_compat_multi(self):
     with patch('celery.__main__.maybe_patch_concurrency') as mpc:
         with patch('celery.__main__._warn_deprecated') as depr:
             with patch('celery.bin.multi.main') as main:
                 __main__._compat_multi()
                 self.assertFalse(mpc.called)
                 depr.assert_called_with('celery multi')
                 main.assert_called_with()