Added integration test directory test/ and load_playlist test.
authorW. Trevor King <wking@drexel.edu>
Fri, 14 May 2010 15:32:17 +0000 (11:32 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 14 May 2010 15:32:17 +0000 (11:32 -0400)
Run all integration tests with:
  nosetests --with-doctest --doctest-tests test/

test/__init__.py [new file with mode: 0644]
test/load_playlist.py [new file with mode: 0644]

diff --git a/test/__init__.py b/test/__init__.py
new file mode 100644 (file)
index 0000000..9c4c13d
--- /dev/null
@@ -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 (file)
index 0000000..9f57285
--- /dev/null
@@ -0,0 +1,8 @@
+"""
+>>> from hooke.hooke import Hooke
+>>> h = Hooke()
+>>> h.run_lines(['load_playlist test/data/test']) # doctest: +ELLIPSIS
+[<hooke.curve.Curve object at 0x...>]
+Success
+<BLANKLINE>
+"""