mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-08 21:49:03 +00:00
Andrew Senetar
6ac20bc4f6
- Create custom test suite based on platform - Use the custom suite for all tests - Update tox.ini to install pywin32
19 lines
491 B
Python
19 lines
491 B
Python
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
|