*To:* sqlal...@googlegroups.com
*Subject:* [sqlalchemy] Unit testing, mocking and dependency injection
with SA Declarative.
I am trying to wrap my head around how to do Dependency Injection with
SQLAlchemy and I am walking in circles.
I want to be able to mock out SA for most of my tests
@googlegroups.com
*Subject:* [sqlalchemy] Unit testing, mocking and dependency injection with SA
Declarative.
I am trying to wrap my head around how to do Dependency Injection with
SQLAlchemy and I am walking in circles.
I want to be able to mock out SA for most of my tests. I trust SA and don't
...@googlegroups.com javascript:
*Subject:* [sqlalchemy] Unit testing, mocking and dependency injection
with SA Declarative.
I am trying to wrap my head around how to do Dependency Injection with
SQLAlchemy and I am walking in circles.
I want to be able to mock out SA for most of my tests. I trust SA
I am trying to wrap my head around how to do Dependency Injection with
SQLAlchemy and I am walking in circles.
I want to be able to mock out SA for most of my tests. I trust SA and don't
want to test serialisation into the DB. I just want to test my own code. So
I was thinking to do dependency
you want to mock the entire relational database at the engine level? that
sounds kind of tough?you should mock at the highest level possible in order
to test the actual code you're testing.unles you're testing that select *
from table returns what you expect, I'm not sure you'd be
, 2013 1:46 AM
To: sqlalchemy@googlegroups.com
Subject: [sqlalchemy] Unit testing, mocking and dependency injection with SA
Declarative.
I am trying to wrap my head around how to do Dependency Injection with
SQLAlchemy and I am walking in circles.
I want to be able to mock out SA for most of my tests