view tests/run.py @ 23:1f8854804795

Add tests for tags and fix a bug in the tag-finding code that was found by the tests.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Oct 2008 20:37:01 -0500
parents 31aa63ac778c
children e319c9168910
line wrap: on
line source

import os
import sys
import unittest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

import test_fetch_command
import test_fetch_command_regexes
import test_push_command
import test_tags

def suite():
    return unittest.TestSuite([test_fetch_command.suite(),
                               test_fetch_command_regexes.suite(),
                               test_push_command.suite(),
                               test_tags.suite(),
                              ])

if __name__ == '__main__':
    runner = unittest.TextTestRunner()
    runner.run(suite())