1 Jun 2010 06:12
Re: Tips on NOT using celery in running unit tests
There's also a cookbook on unit testing: http://celeryproject.org/docs/cookbook/unit-testing.html I've been using nose for testing lately and I use a nose plugin to set the CELERY_ALWAYS_EAGER stuff. The code is a total hackfest right now, but it's available here: http://github.com/winhamwr/nosedjango/blob/master/nosedjango/nosedjango.py#L343 -wes On May 30, 12:20 pm, Patrick Altman <palt...@...> wrote: > In settings check sys args for presence of "test" then set the setting. > > --- > Patrick Altman > (615) 300-2930 > > [Sent from my iPhone] > > On May 30, 2010, at 10:15 AM, Peter Bengtsson <pete...@...> wrote: > > > > > > > On May 30, 12:39 pm, Ask Solem <a...@...> wrote: > >> On May 30, 2010, at 12:39 PM, Peter Bengtsson wrote: > > >>> One of the beauties of Celery is that I can use the tasks even > >>> within > >>> running unit tests without actually running them asyncronously. > >>> Here's how I do it:(Continue reading)
RSS Feed