Re: [sqlalchemy] passive Query

2011-01-17 Thread Michael Bayer
Well obviously you could mock it. A few years back Jason wrote a statement recorder/replayer which can simulate a DBAPI receiving/returning an exact series of statements/results, it involves first recording the database interaction into memory and specifically is not for mocking, though I

Re: [sqlalchemy] passive Query

2011-01-17 Thread Eric Lemoine
Thanks Mike and Alexandre for your responses. On Mon, Jan 17, 2011 at 5:27 PM, Michael Bayer mike...@zzzcomputing.com wrote: Well obviously you could mock it. I don't want to mock it because I want to check the resulting query statement. A few years back Jason wrote a statement

[sqlalchemy] passive Query

2011-01-16 Thread Eric Lemoine
Hello For testing purposed I'd like to do query.all(). query.get() and query.count() with no actual communication with the DBMS. Is this possible? Thanks a lot, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail :