Re: [Twisted-Python] Review tag for closed tickets

2015-01-27 Thread Adi Roiban
On 27 January 2015 at 00:44, wrote: > On 26 Jan, 08:51 pm, a...@roiban.ro wrote: >>> >>> >>> The review should be completed before the ticket is merged, so the bot >>> should not be doing this automatically. >> >> >> but in the commit message I do add the author, why not have the bot >> automatic

[Twisted-Python] Unit testing, trail, inlineCallbacks, deferreds and mocking

2015-01-27 Thread Patryk Ściborek
Hi! I've just started a new project using Twisted and I want to write unit tests since the beginning. Unfortunately I've got some trouble understanding how should I do it. I read 'Test-driven development with Twisted', read some articles on the web and searched on the mailing list but I couldn't f

Re: [Twisted-Python] Unit testing, trail, inlineCallbacks, deferreds and mocking

2015-01-27 Thread James Broadhead
Hey I raised a similar question a while ago: http://twistedmatrix.com/pipermail/twisted-python/2013-July/027241.html Since then, our approach has evolved into the below, which may be useful. https://github.com/jamesbroadhead/bttrtwisted/blob/master/bttrtwisted/testing.py Usage: expected = Foo(

Re: [Twisted-Python] Unit testing, trail, inlineCallbacks, deferreds and mocking

2015-01-27 Thread Adi Roiban
On 27 January 2015 at 13:00, Patryk Ściborek wrote: > Hi! > > I've just started a new project using Twisted and I want to write unit tests > since the beginning. Unfortunately I've got some trouble understanding how > should I do it. I read 'Test-driven development with Twisted', read some > artic