From: W. Trevor King Date: Fri, 14 May 2010 15:32:17 +0000 (-0400) Subject: Added integration test directory test/ and load_playlist test. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf56eb688e24d3ff8bc8aaeb2db3b0a6e6531772;p=hooke.git Added integration test directory test/ and load_playlist test. Run all integration tests with: nosetests --with-doctest --doctest-tests test/ --- diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..9c4c13d --- /dev/null +++ b/test/__init__.py @@ -0,0 +1,12 @@ +"""Hooke integration tests. + +Besides the unittests embedded in the Hooke code, we also want to +check the whole system against popular use cases. This :mod:`test` +module can be scanned by ``nosetests`` in the ususal manner to run any +defined tests. + +Because of the ``nosetests`` scanning, the working directory for all +tests is the Hooke source root directory. If you change directories +during a test, be sure to change back to the original directory when +you're done. +""" diff --git a/test/load_playlist.py b/test/load_playlist.py new file mode 100644 index 0000000..9f57285 --- /dev/null +++ b/test/load_playlist.py @@ -0,0 +1,8 @@ +""" +>>> from hooke.hooke import Hooke +>>> h = Hooke() +>>> h.run_lines(['load_playlist test/data/test']) # doctest: +ELLIPSIS +[] +Success + +"""