I'm seeing similar behaviour: I have two test methods in a class. Each
method completes successfully when run in isolation, but when I run
them both as a suite, I get "no such table" exceptions.

In the same way as the OP, the suite passes as expected when I use a
sqlite file database, rather than in-memory.

Does anyone have any ideas? I don't seem to be doing anything
particularly odd in websetup.py or setUp methods...

Thanks!
James

On Oct 22, 1:13 pm, Alessandro Molina <[email protected]>
wrote:
> On Thursday 22 October 2009 15:09:23 Alessandro Molina wrote:
>
> > When thetestsuite calls websetup.py from TestController.setUp the
> > websetup.py fails when checking for the existing groups saying that
> > "(OperationalError)no such table: tg_group" even if the line before was
> > the metadata.create_all call.
>
> I also have to say that if I change
>
> sqlalchemy.url = sqlite:///:memory:
>
> to
>
> sqlalchemy.url = sqlite:///foobar.db
>
> intest.ini
> everything works as expected. But I should be able to make tests work also on
> memory db
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to