Browse Source

Move runtests.py script into test directory

tags/nilmdb-1.0
Jim Paris 11 years ago
parent
commit
b01f23ed99
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +3
    -0
      tests/runtests.py

+ 1
- 1
Makefile View File

@@ -4,7 +4,7 @@ lint:
pylint --rcfile=.pylintrc nilmdb

test:
python runtests.py
python tests/runtests.py

clean::
find . -name '*pyc' | xargs rm -f


runtests.py → tests/runtests.py View File

@@ -6,6 +6,9 @@ import sys
import glob
from collections import OrderedDict

# Change into parent dir
os.chdir(os.path.dirname(os.path.realpath(__file__)) + "/..")

class JimOrderPlugin(nose.plugins.Plugin):
"""When searching for tests and encountering a directory that
contains a 'test.order' file, run tests listed in that file, in the

Loading…
Cancel
Save