On Thu, Jan 29, 2009 at 10:10 AM, Diez B. Roggisch <[email protected]> wrote:
>
> Florent Aide schrieb:
>> Hi all,
>>
>> I have just tried to use the functionnal tests from a quickstarted
>> application in tg2 and I got an error stating that the table my
>> controller was trying to query on did not exist. I expected the db to
>> be created like it was in all other (unit) tests...
>>
>> I had to do quite a few things that may be interesting to have in the
>> quickstarted app to avoid people bumping in the same problem...
>>
>> http://paste.turbogears.org/paste/30713/
>>
>> In the above paste you can find my solution: inherit from both DBTest
>> and TestController and also init both properly...
>>
>> this way my functionnal tests get a database connexion....
>>
>> What do you think if I add this to the quickstarted app's tests?
>
> +1. I've been hit by this as well, and I really like testing to start as
> smooth as possible.

I hit a semi wall here... My solution works as long as I have only one
functionnal test using the DB
The second test will find an empty db ... I need to investigate
further and find a clean solution to this.

Florent.

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

Reply via email to