Wed Oct 25 12:46:42 2006

Ticket #99 (Closed: fixed)

integrated twisted with nose


Priority: normal Reporter: guest
Severity: enhancement Assigned to: jpellerin
Component: nose Status: closed
Version:   Resolution: fixed
Milestone: 0.9.2 Keywords: twisted patch

Description by guest:

Here is the Twisted integration source code.

twistedtools.py is the implementation itself (I first tried to call it "twisted", but then it shadows the original twisted package). It allows to decorate tests that return a Deferred.

test_twisted.py is the test suite for the implementation. There probably should be a way to skip it if Twisted is not installed (instead of raising ImportError? all around), but I don't know the right way to do that.

Attachments

  • twistedtools.py (3 kB) - implementation, added by Antoine Pitrou on Wed Oct 25 12:48:26 2006.
  • test_twisted.py (1 kB) - test suite, added by Antoine Pitrou on Wed Oct 25 12:49:29 2006.
  • twistedtools.2.py (4 kB) - implementation (version #2), added by Antoine Pitrou on Thu Nov 2 05:25:41 2006.

Changelog

Wed Oct 25 12:48:26 2006: Modified by Antoine Pitrou

  • attachment added: twistedtools.py

Wed Oct 25 12:49:29 2006: Modified by Antoine Pitrou

  • attachment added: test_twisted.py

Thu Nov 2 05:24:36 2006: Modified by guest

    I'm attaching a new version with the following changes:

    • better tracebacks if an exception is raised in the callback chain
    • slightly better docstrings

    Antoine.

    Thu Nov 2 05:25:41 2006: Modified by Antoine Pitrou

    • attachment added: twistedtools.2.py

    Tue Nov 7 09:31:12 2006: Modified by jpellerin

    • milestone set to 0.9.2
    • keywords set to twisted patch
    • status changed from new to assigned

    Sun Nov 12 20:37:53 2006: Modified by jpellerin

    • resolution set to fixed
    • status changed from assigned to closed

    nose.twistedtools added in [111]. Thank you!