view tests/runtests.py @ 445:a71176d858be

surge protection: specialcase AttachFile, fix no cache exists case imported from: moin--main--1.5--patch-449
author Thomas Waldmann <tw@waldmann-edv.de>
date Thu, 16 Feb 2006 22:08:06 +0000
parents a6082488e74e
children 767109c48208
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - Run Unit tests

Usage:

    runtests [test_name...]

Without arguments run all the tests in the _tests package.

@copyright: 2002-2004 by Jürgen Hermann <jh@web.de>
@license: GNU GPL, see COPYING for details.
"""

import os, sys

moinpath = os.path.join(os.path.dirname(sys.argv[0]), os.pardir)
sys.path.insert(0, os.path.abspath(moinpath))

from MoinMoin import _tests

def run():   
    _tests.run(names=sys.argv[1:])


if __name__ == '__main__':
    run()