Commit 328b018b by Chris Jerdonek

Updated pystache/commands/test.py to use the new test-discovery code.

parent 224d2a1d
......@@ -7,20 +7,14 @@ This module provides a command to test pystache (unit tests, doctests, etc).
import sys
# TODO: make nose unnecessary.
import nose
import pystache
from pystache.tests.main import Tester
def main(sys_argv):
# This does not work with the --with-doctest flag yet because of the
# following issue:
# https://github.com/nose-devs/nose/issues/383
# TODO: change module keyword argument to defaultTest keyword argument:
# http://readthedocs.org/docs/nose/en/latest/api/core.html#module-nose.core
nose.main(module=pystache)
def main(sys_argv=sys.argv):
tester = Tester()
tester.run_tests(package=pystache, sys_argv=sys_argv)
if __name__=='__main__':
main(sys.argv)
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment