Skip to content

Commit cbb988b

Browse files
Switch to using pytest.
1 parent 31722e0 commit cbb988b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pythonFiles/tests/__main__.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os.path
22
import sys
3-
import unittest
3+
4+
import pytest
45

56

67
TEST_ROOT = os.path.dirname(__file__)
@@ -10,6 +11,8 @@
1011

1112
if __name__ == '__main__':
1213
sys.path.insert(1, DATASCIENCE_ROOT)
13-
suite = unittest.defaultTestLoader.discover(TEST_ROOT,
14-
top_level_dir=SRC_ROOT)
15-
unittest.TextTestRunner(verbosity=2).run(suite)
14+
ec = pytest.main([
15+
'--rootdir', SRC_ROOT,
16+
TEST_ROOT,
17+
])
18+
sys.exit(ec)

0 commit comments

Comments
 (0)