[Twisted-Python] Help with trial test failure

Benjamin BERTRAND beenje at gmail.com
Wed Aug 7 14:22:26 MDT 2013


Le 7 août 2013 à 04:42, Piper Masden <piper.masden at gmail.com> a écrit :

> On Tue, Aug 6, 2013 at 2:33 PM, Benjamin BERTRAND <beenje at gmail.com> wrote:
> 
> I guess it's possible to use a synthetic transport, but that wouldn't help much without a "fake" redis server.
> That would indeed be nice to have for testing.
> 
> I actually just found a dummy txredis client that implements everything internally for testing: https://github.com/williamsjj/dummy-txredis
> Might be worth looking at.
> But I wonder if implementing a basic redis server with twisted (for testing purpose) wouldn't be nicer?
> 
> What exactly are you testing? Are you testing communication with redis, or are you testing how you handle the data from redis? If the latter, why not just use a mock?
> 

It's the communication with redis I want to test (more an integration test).

Benjamin


> Piper
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130807/639cb8bf/attachment.html>


More information about the Twisted-Python mailing list