Beispiel #1
0
 def test_main(self):
     p, cd.Worker = cd.Worker, Worker
     s, sys.argv = sys.argv, ['celeryd', '--discard']
     try:
         celeryd_main()
     finally:
         cd.Worker = p
         sys.argv = s
Beispiel #2
0
 def test_main(self):
     p, cd.Worker = cd.Worker, Worker
     s, sys.argv = sys.argv, ["celeryd", "--discard"]
     try:
         celeryd_main()
     finally:
         cd.Worker = p
         sys.argv = s
Beispiel #3
0
 def test_main(self):
     p, cd.Worker = cd.Worker, Worker
     s, sys.argv = sys.argv, ["celeryd", "--discard"]
     try:
         celeryd_main()
     finally:
         cd.Worker = p
         sys.argv = s