Great! I'm gonna check it out :)

Thanks!

On Saturday, 27 July 2013 12:11:12 UTC-7, Michael Bayer wrote:
>
> take a look in test/engine/test_pool and test/engine/test_reconnect for 
> examples
>
>
> On Jul 27, 2013, at 1:50 PM, tiadobatima <[email protected] <javascript:>> 
> wrote:
>
> Hi Michael,
>
> Yeah... I was indeed thinking of using the mock library. I just can't wrap 
> my head around how to use it to mock ResultProxy.
> On this note, mocking engine and connection would be also very handy. 
> Would you have any examples to share?
>
> Thanks!
> g.
>
> On Saturday, 27 July 2013 08:10:24 UTC-7, Michael Bayer wrote:
>>
>> have you tried the "mock" library?    I'm using it quite a bit now and 
>> have mocked things like engines and connections.   Should be pretty easy to 
>> make it act like a result object.
>>
>>
>> On Jul 24, 2013, at 8:37 PM, tiadobatima <[email protected]> wrote:
>>
>> Hello there,
>>
>> I''ve extended both RowProxy and ResultProxy, and I'm trying to figure 
>> out a way to mock objects of these classes in order to write some unit 
>> tests.
>> I was looking at the SQLAlchemy's unittests and I'm still not sure how to 
>> do this without using a real database. Google hasn't been very helpful 
>> either.
>>
>> Any hints? :)
>>
>> Thanks!
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sqlalchemy" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sqlalchemy.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>>
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to