Hallo there!

I'm trying to port my current 2 yrs old project (running on TG 1.0.8 + 
SA 0.4.8 + postgres) to TG 1.1b3

It's a management control application that relies heavily on 
SqlAlchemy's autoload feature due
to the complexity of the db (150+ tables and views, growing)
I really think the schema declarations belong to SQL in this case, so I 
attach mappers to tables that are
created, or evolved, through plain ole SQL scripts.

The application runs almost untouched under TG 1.1b3, I have to thank 
you for the release and the care
you took in not changing the API.

Now my main issue are the tests.
Under 1.0.8, I have my DBTestCase class that, upon startUp and tearDown, 
TRUNCATEs all the tables
and re-populates them with a fixture SQL script.
I subclass this both for model tests, and for the functional tests (run 
through a customized BrowsingSession).

Under 1.1b3, every test under "model" is passing.
All of controller tests are failing, raising exceptions like "NotReady: 
The CherryPy server has stopped."

Sice the main reason I'm porting to TG1.1 is to have better tests 
anyway, I've started rewriting them for TGTest,
but I could not write a working TGTest-derived class that also took care 
of the DB fixture (the autoload thing
is a detail, I could adapt it if it worked with Elixir or whatever).

I suppose some of you had the same need? How do you manage your DB?

thanks a lot


--~--~---------~--~----~------------~-------~--~----~
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