[Twisted-Python] Help with trial test failure

Piper Masden piper.masden at gmail.com
Tue Aug 6 20:42:10 MDT 2013


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?

Piper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130806/8f2e1f37/attachment.html>


More information about the Twisted-Python mailing list