mirror of
https://github.com/arsenetar/send2trash.git
synced 2026-01-22 14:41:40 +00:00
First batch of updates to unit tests
- Remove content from __init__.py - Change test_script_main to use pytest - Update test_script_main to run on windows as well as linux
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user