[tor-bugs] #9873 [BridgeDB]: Convert BridgeDB's old unittests to use twisted.trial

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 2 08:54:04 UTC 2013


#9873: Convert BridgeDB's old unittests to use twisted.trial
--------------------------------+----------------------
 Reporter:  isis                |          Owner:  isis
     Type:  enhancement         |         Status:  new
 Priority:  normal              |      Milestone:
Component:  BridgeDB            |        Version:
 Keywords:  bridgedb-unittests  |  Actual Points:
Parent ID:  #9865               |         Points:
--------------------------------+----------------------
 `twisted.trial` has a conversion utility class for translating test
 results from stdlib `unittest` into something which `trial`'s reporter can
 use. I've never used it, but either some sort of conversion should be done
 of the old tests, or they should be rewritten.

 Additionally, all the tests are in one file, lib/bridgedb/Tests.py, which
 imports al of the modules in the `bridgedb` package, and also makes it a
 bit hard to follow which test is testing what.

 We should also probably re-evaluate whether the `class
 Test(setuptools.Command)` in `setup.py` is still necessary.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9873>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list