瀏覽代碼

Fixes tests

Ask Solem 9 年之前
父節點
當前提交
50185a4fc0
共有 1 個文件被更改,包括 0 次插入33 次删除
  1. 0 33
      celery/tests/bin/test_celery.py

+ 0 - 33
celery/tests/bin/test_celery.py

@@ -36,12 +36,6 @@ from celery.tests.case import (
 
 class test__main__(AppCase):
 
-    def test_warn_deprecated(self):
-        with override_stdouts() as (stdout, _):
-            __main__._warn_deprecated('YADDA YADDA')
-            self.assertIn('command is deprecated', stdout.getvalue())
-            self.assertIn('YADDA YADDA', stdout.getvalue())
-
     def test_main(self):
         with patch('celery.__main__.maybe_patch_concurrency') as mpc:
             with patch('celery.bin.celery.main') as main:
@@ -49,33 +43,6 @@ class test__main__(AppCase):
                 mpc.assert_called_with()
                 main.assert_called_with()
 
-    def test_compat_worker(self):
-        with patch('celery.__main__.maybe_patch_concurrency') as mpc:
-            with patch('celery.__main__._warn_deprecated') as depr:
-                with patch('celery.bin.worker.main') as main:
-                    __main__._compat_worker()
-                    mpc.assert_called_with()
-                    depr.assert_called_with('celery worker')
-                    main.assert_called_with()
-
-    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()
-
-    def test_compat_beat(self):
-        with patch('celery.__main__.maybe_patch_concurrency') as mpc:
-            with patch('celery.__main__._warn_deprecated') as depr:
-                with patch('celery.bin.beat.main') as main:
-                    __main__._compat_beat()
-                    mpc.assert_called_with()
-                    depr.assert_called_with('celery beat')
-                    main.assert_called_with()
-
 
 class test_Command(AppCase):