[tor-bugs] #11335 [Stem]: Tests for example scripts

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 27 15:14:28 UTC 2014


#11335: Tests for example scripts
--------------------------+------------------------
 Reporter:  atagar        |          Owner:  atagar
     Type:  enhancement   |         Status:  new
 Priority:  normal        |      Milestone:
Component:  Stem          |        Version:
 Keywords:  testing easy  |  Actual Points:
Parent ID:                |         Points:
--------------------------+------------------------
 We recently added a
 [https://stem.torproject.org/tutorials/double_double_toil_and_trouble.html#scripts
 scripts section] to our examples. We should have unit tests for these. See
 our
 [https://gitweb.torproject.org/stem.git/blob/HEAD:/test/unit/tutorial.py
 tutorial unit tests] for an example of how we could do this.

 I really dislike the idea of duplicating these scripts in our tests so
 bonus points if you can figure out a way of having our tests read the
 docs! This might actually be a decent use of eval...

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


More information about the tor-bugs mailing list