On Feb 27, 4:53 am, Marius Gedminas <[email protected]> wrote:
> On Fri, Feb 26, 2010 at 12:26:59PM -0800, iain duncan wrote:
> > Hi folks, I'm wondering why when using nose to runs pylons
> > paste.fixture based test classes, setup/teardown don't seem to run
> > ( maybe I'm missing something?)
>
> It's hard to say, since you provided almost no information (e.g. the
> error traceback is often very useful for diagnosing problems).  I'll
> make a guess.
>
> There's a trick to it: the Pylons nose plugin that does some additional
> setup.  Perhaps you're missing that.  Usually it's enabled in setup.cfg:
>
>   [nosetests]
>   with-pylons = test.ini
>
> You can also try it on the command line:
>
>   nosetests --with-pylons=test.ini
>
> see if nose picks up the Pylons plugin.

Hi there, the thing is there is no error. The tests are running fine
when I do
$ nosetests --with-pylons=myfile.ini

What I have done is add a method called setup to the same
TestControllers that get made when you make a controller. In a normal
nose test class, this gets run prior to each test, in this case it
doesn't ever get run.

thanks
iain

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to