Re: [SQLObject] Database exceptions handling
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2006-07-30 10:58:43
|
On Wed, Jul 26, 2006 at 08:03:16AM +0300, Mircea Amarascu wrote: > I've read the "Handling exceptions" topic on this mailing list > (http://www.mail-archive.com/sqlobject-discuss%40lists.sourceforge.net/msg00975.html) > and decided to take a step further and try to add a database exception > hierarchy to > SQLObject Can you also add some tests? For example, add a duplicate record (key), catch an exception and test that the exception is really... what should it be? IntegrityError? ProgrammingError? SQLObject's tests (based on py.test framework) allow one to limit platforms the tests are running on, so you can limit your tests to SQLite and MySQL. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |