File: runtests.py

package info (click to toggle)
python-iniparse 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 2,215; makefile: 24; sh: 8
file content (20 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

import doctest
import os
import unittest

from iniparse import config
from iniparse import ini


def load_tests(loader, tests, pattern):
    tests_dir = os.path.join(os.path.dirname(__file__), "tests")
    package_tests = loader.discover(start_dir=tests_dir)
    tests.addTests(package_tests)
    tests.addTests((doctest.DocTestSuite(config), doctest.DocTestSuite(ini)))
    return tests


if __name__ == '__main__':
    unittest.main()