On Mar 30, 5:52 am, Christopher Arndt <[EMAIL PROTECTED]> wrote:
> Doug Latornell schrieb:
>
> > I think it should be noted in the Testing Your Model section of
> >http://docs.turbogears.org/1.0/Testingthat testutil.DBTest provides
> > setUp() and tearDown() methods that create and drop (respectively) the
> > tables for your model.
>
> Does the default implementation support SO and SA or only the former?

Certainly SO, but I'm not sure about SA.  I'll try to figure that out
and get back.

>
> >  That means that if you want to define your own
> > setUp/tearDown for tests in a class that inherits from testutil.DBTest
> > you either need to handle the creates/drops yourself, or do something
> > like:
>
> > def setUp(self):
> >     testutil.DBTest.setUp(self)
> >     # the rest of your setup code...
>
> That should probably be 'super(MyTest, self).setUp()', shouldn't it?

Yeah, you're right, that's more correct and idiomatic, though the
other works...

>
> Can you file "Documentation" enhancement ticket please?

Will do.
>
> Extra karma points for providing a diff for the new text :-)

I like karma!!  I'll see what I can do.

Doug

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Docs" 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/turbogears-docs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to