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

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 10 11:45:23 UTC 2014


#11335: Tests for example scripts
-----------------------------+--------------------------
     Reporter:  atagar       |      Owner:  atagar
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Stem         |    Version:
   Resolution:               |   Keywords:  testing easy
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------

Comment (by sambuddhabasu):

 Does the tutorial unit tests link actually refer to the other link?
 https://gitweb.torproject.org/stem.git/tree/test/unit/tutorial.py
 Replying to [ticket:11335 atagar]:
 > 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#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list