Browse Source

Use nosetests for unit tests instead of a custom script

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
tags/0.1.0
Jerome Flesch 3 years ago
parent
commit
d5e92a8e03
3 changed files with 3 additions and 26 deletions
  1. 0
    26
      run_tests.py
  2. 2
    0
      setup.cfg
  3. 1
    0
      setup.py

+ 0
- 26
run_tests.py View File

@@ -1,26 +0,0 @@
#!/usr/bin/env python3
import unittest

from tests import tests_ace
from tests import tests_all
from tests import tests_blackfilter
from tests import tests_blurfilter
from tests import tests_border
from tests import tests_canny
from tests import tests_grayfilter
from tests import tests_masks
from tests import tests_noisefilter
from tests import tests_sobel


if __name__ == '__main__':
unittest.main(tests_ace, verbosity=2, exit=False)
unittest.main(tests_blackfilter, verbosity=2, exit=False)
unittest.main(tests_blurfilter, verbosity=2, exit=False)
unittest.main(tests_border, verbosity=2, exit=False)
unittest.main(tests_canny, verbosity=2, exit=False)
unittest.main(tests_grayfilter, verbosity=2, exit=False)
unittest.main(tests_masks, verbosity=2, exit=False)
unittest.main(tests_noisefilter, verbosity=2, exit=False)
unittest.main(tests_sobel, verbosity=2, exit=False)
unittest.main(tests_all, verbosity=2, exit=False)

+ 2
- 0
setup.cfg View File

@@ -0,0 +1,2 @@
[nosetests]
verbosity=2

+ 1
- 0
setup.py View File

@@ -54,4 +54,5 @@ setup(
install_requires=[
"Pillow",
],
setup_requires=['nose>=1.0'],
)

Loading…
Cancel
Save