@all
Or may be I have to modify __init__.py in tests/model dir so that klass 
accepts list of tables and attrs accept some sort of list of list of dicts. 
Is that a good approach?

On Monday, 5 November 2012 14:25:22 UTC+5:30, jeetu wrote:
>
> nosetest example in turbogears 
> http://www.turbogears.org/2.2/docs/main/Testing/index.html suggests use 
> of klass and attrs for testing a single table. What if i have multiple 
> tables like in many to one relationships. I want to initiate two tables in 
> single setup of nosetest. How to do it. I am expecting something like 
>
> class TestUser(ModelTest):
>     """Unit test case for the ``User`` model."""
>     klass1 = model.User
>     attrs1 = dict(
>         user_name = u"ignucius",
>         email_address = u"[email protected]"
>         group = u"test" )
>    
>     klass2 = model.Group
>     attrs2 = dict(
>         group_name = u"test",
>         )
>
>     def test_something(self):
>          pass
>
> Is something like this possible? An example would help a lot.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/I5H_6S_ccOQJ.
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?hl=en.

Reply via email to