1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-22 14:41:40 +00:00

Fix new issues with unit tests

- Create custom test suite based on platform
- Use the custom suite for all tests
- Update tox.ini to install pywin32
This commit is contained in:
2020-06-11 23:20:16 -05:00
parent e3d2be3243
commit 6ac20bc4f6
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,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