From 0b199329a4c810dc984e4c0217dac96e18382485 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 14 May 2010 11:32:17 -0400 Subject: [PATCH] Added integration test directory test/ and load_playlist test. Run all integration tests with: nosetests --with-doctest --doctest-tests test/ --- test/__init__.py | 12 ++++++++++++ test/load_playlist.py | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/__init__.py create mode 100644 test/load_playlist.py 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 + +""" -- 2.26.2