Added runtests function to discover and run tests from within python.
This commit is contained in:
parent
bb1d18c2a0
commit
6eafc2ad3d
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
|||
"""glymur - read, write, and interrogate JPEG 2000 files
|
||||
"""
|
||||
|
||||
|
||||
from .jp2k import Jp2k
|
||||
from .jp2dump import jp2dump
|
||||
|
||||
from . import data
|
||||
from . import test
|
||||
|
||||
def runtests():
|
||||
"""Discover and run all tests for the glymur package.
|
||||
"""
|
||||
import unittest
|
||||
suite = unittest.defaultTestLoader.discover(__path__[0])
|
||||
unittest.TextTestRunner(verbosity=2).run(suite)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue