[tahoe-lafs-trac-stream] [tahoe-lafs] #1301: use a mock decorator for test methods that return Deferreds

tahoe-lafs trac at tahoe-lafs.org
Sat Sep 3 21:23:21 PDT 2011


#1301: use a mock decorator for test methods that return Deferreds
----------------------------+----------------------------------------
     Reporter:  davidsarah  |      Owner:  somebody
         Type:  defect      |     Status:  new
     Priority:  minor       |  Milestone:  undecided
    Component:  code        |    Version:  1.8.1
   Resolution:              |   Keywords:  mock twisted deferred test
Launchpad Bug:              |
----------------------------+----------------------------------------

Comment (by zooko):

 Replying to [comment:3 davidsarah]:
 > Is this useful?
 http://twistedmatrix.com/documents/10.1.0/api/twisted.trial.unittest.TestCase.html#patch
 >
 > It's not as sophisticated as the {{{mock}}} library, but it might
 suffice for the cases we currently need, until we can depend on a version
 of {{{mock}}} that automatically handles deferreds.

 Yeah, that looks potentially perfect. :-)

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1301#comment:4>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list