Re: [sqlalchemy] Testing sqlalchemy applications :p: :p:

2013-04-25 Thread Paradox
When you say you created a setup fixture but it didn't work, what didn't work exactly? For example, if you just did something like this: def setup(): engine = ... Session = ... session = Session() ...then that won't work because session is a local variable inside the setup

Re: [sqlalchemy] Testing sqlalchemy applications :p:

2013-04-23 Thread Paradox
On 04/23/2013 04:31 PM, Simon King wrote: On Tue, Apr 23, 2013 at 6:54 AM, Paradox para...@pobox.com wrote: I have a question related to sqlalchemy and testing, not sure if this is the best place to ask so let me know if I am asking here in error. I am trying to learn to write and run tests

Re: [sqlalchemy] Testing sqlalchemy applications :p:

2013-04-23 Thread Сергей Панов
What do sqlalchemy users usually use for testing? I am willing to learn other ways to do this that are more suited to the packages. thomas we use unittest you can see how to setup session here https://github.com/vice-versa/sacrud/blob/master/sacrud/tests/__init__.py

Re: [sqlalchemy] Testing sqlalchemy applications :p:

2013-04-23 Thread Simon King
On Tue, Apr 23, 2013 at 2:08 PM, Paradox para...@pobox.com wrote: On 04/23/2013 04:31 PM, Simon King wrote: On Tue, Apr 23, 2013 at 6:54 AM, Paradox para...@pobox.com wrote: I have a question related to sqlalchemy and testing, not sure if this is the best place to ask so let me know if I