test_curried_doctests.py 274 B

1234567891011
  1. import doctest
  2. import toolz
  3. def test_doctests():
  4. toolz.__test__ = {}
  5. for name, func in vars(toolz).items():
  6. if isinstance(func, toolz.curry):
  7. toolz.__test__[name] = func.func
  8. assert doctest.testmod(toolz).failed == 0
  9. del toolz.__test__