F. Eugene Aumson e1d64def20
feat(order_utils.py): sign_hash() (#1254)
Also moved is_valid_signature() into main package module, for
simplicity.

Also consolidated a handul of in-line pylint disable directives into the
.pylintrc config file.
2018-11-14 10:41:52 -05:00

18 lines
470 B
Python

"""Exercise doctests for all of our modules."""
from doctest import testmod
import pkgutil
import zero_ex
def test_all_doctests():
"""Gather zero_ex.* modules and doctest them."""
for (importer, modname, _) in pkgutil.walk_packages(
path=zero_ex.__path__, prefix="zero_ex."
):
module = importer.find_module(modname).load_module(modname)
print(module)
(failure_count, _) = testmod(module)
assert failure_count == 0