File: __init__.py

package info (click to toggle)
python-pybedtools 0.10.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,620 kB
  • sloc: python: 10,030; cpp: 899; makefile: 142; sh: 57
file content (18 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def suite():
    import unittest
    import os

    test_dir = os.path.abspath(os.path.dirname(__file__))

    tests = []
    for filename in os.listdir(test_dir):
        if filename.endswith(".py") and not filename.startswith("_"):
            tests.append(unittest.findTestCases("tests." + filename[:-3]))

    return unittest.TestSuite(tests)


if __name__ == "__main__":
    import unittest

    unittest.main()