[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Testing our examples via doctest
commit c0e20264548d1566501eb2a38b2df4ddeabba87c
Merge: 1c853f2 f3d6063
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sun Oct 27 11:02:01 2013 -0700
Testing our examples via doctest
Exercising our interpretor style examples (ones with a '>>>') via python's
doctest module. Sadly this does not include sphinx examples (those proceeded
with a '::'), its own doctest module might do the trick...
http://sphinx-doc.org/ext/doctest.html
... but I'm not clear if or how we can tie that into our unit tests. For now
putting it on our backlog...
https://trac.torproject.org/10036
stem/control.py | 6 +--
stem/descriptor/router_status_entry.py | 2 +-
stem/exit_policy.py | 4 +-
stem/util/conf.py | 4 +-
stem/util/connection.py | 4 +-
stem/version.py | 2 +-
test/settings.cfg | 3 +-
test/unit/doctest.py | 90 ++++++++++++++++++++++++++++++++
8 files changed, 103 insertions(+), 12 deletions(-)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits