view tests/runtests.py @ 1603:767109c48208

rearrange testing setup, make moin.py runnable from toplevel dir
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 03 Oct 2006 00:17:04 +0200
parents a6082488e74e
children 6dd2e29acffe
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

from MoinMoin import _tests

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


if __name__ == '__main__':
    run()