-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
44 lines (34 loc) · 1.02 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Unit test module."""
import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
#from . import run_src_app
#from run_src_app import run_app_test
#from run_src_app import makeTests
__author__ = "Loic Jaquemet"
__copyright__ = "Copyright (C) 2012 Loic Jaquemet"
__email__ = "[email protected]"
__license__ = "GPL"
__maintainer__ = "Loic Jaquemet"
__status__ = "Production"
def alltests():
# 2015-06-12 move to preptests target
# makeTests()
# run all tests
ret = unittest.TestLoader().discover('test/haystack/')
#import code
#code.interact(local=locals())
#print '*** REMOVING reverse tests ***'
#for x in ret._tests:
# if 'reverse' in str(x):
# ret._tests.remove(x)
return ret
#alltests = suite()
if __name__ == '__main__':
unittest.main(verbosity=0)
#suite = unittest.TestLoader().loadTestsFromTestCase(TestFunctions)
# unittest.TextTestRunner(verbosity=2).run(suite)