forked from biolab/orange3-single-cell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import unittest | ||
|
||
def suite(loader=None, pattern='test*.py'): | ||
test_dir = os.path.dirname(__file__) | ||
if loader is None: | ||
loader = unittest.TestLoader() | ||
if pattern is None: | ||
pattern = 'test*.py' | ||
all_tests = [ | ||
loader.discover(test_dir, pattern), | ||
] | ||
|
||
return unittest.TestSuite(all_tests) | ||
|
||
|
||
def load_tests(loader, tests, pattern): | ||
return suite(loader, pattern) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main(defaultTest='suite') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import unittest | ||
|
||
|
||
class ExampleTests(unittest.TestCase): | ||
def test_addition(self): | ||
self.assertEqual(1 + 1, 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters