File: __init__.py

package info (click to toggle)
send2trash 1.6.0~b1%2Bgit20210122.2eb3242-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 184 kB
  • sloc: python: 737; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import sys
import unittest


def TestSuite():
    suite = unittest.TestSuite()
    loader = unittest.TestLoader()
    if sys.platform == "win32":
        from . import test_plat_win

        suite.addTests(loader.loadTestsFromModule(test_plat_win))
    else:
        from . import test_script_main
        from . import test_plat_other

        suite.addTests(loader.loadTestsFromModule(test_script_main))
        suite.addTests(loader.loadTestsFromModule(test_plat_other))
    return suite