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