[tor-commits] [stem/master] Decorators for skipping tests

atagar at torproject.org atagar at torproject.org
Sat Feb 21 22:08:00 UTC 2015


commit 867ddbe86cb278467deeb65938581f9b819af555
Merge: b8edb40 7232e79
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Feb 21 14:05:17 2015 -0800

    Decorators for skipping tests
    
    Using decorators like @require_controller for skipping our tests rather than
    helper functions. This is a perfect use case for decorators, as it lets the
    test content just be focused on what it should do.
    
      https://trac.torproject.org/projects/tor/ticket/14945

 test/integ/connection/authentication.py       |   48 ++----
 test/integ/connection/connect.py              |   14 +-
 test/integ/control/base_controller.py         |   39 ++---
 test/integ/control/controller.py              |  224 +++++++------------------
 test/integ/descriptor/extrainfo_descriptor.py |    8 +-
 test/integ/descriptor/microdescriptor.py      |    6 +-
 test/integ/descriptor/networkstatus.py        |   14 +-
 test/integ/descriptor/remote.py               |   61 +++----
 test/integ/descriptor/server_descriptor.py    |    8 +-
 test/integ/process.py                         |   35 ++--
 test/integ/response/protocolinfo.py           |   17 +-
 test/integ/socket/control_message.py          |   32 ++--
 test/integ/socket/control_socket.py           |   30 +---
 test/integ/version.py                         |   10 +-
 test/runner.py                                |   71 ++++----
 15 files changed, 214 insertions(+), 403 deletions(-)



More information about the tor-commits mailing list