__init__.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # coding=utf-8
  2. #
  3. # This file is part of Hypothesis, which may be found at
  4. # https://github.com/HypothesisWorks/hypothesis-python
  5. #
  6. # Most of this work is copyright (C) 2013-2018 David R. MacIver
  7. # (david@drmaciver.com), but it contains contributions by others. See
  8. # CONTRIBUTING.rst for a full list of people who may hold copyright, and
  9. # consult the git log if you need to determine who owns an individual
  10. # contribution.
  11. #
  12. # This Source Code Form is subject to the terms of the Mozilla Public License,
  13. # v. 2.0. If a copy of the MPL was not distributed with this file, You can
  14. # obtain one at http://mozilla.org/MPL/2.0/.
  15. #
  16. # END HEADER
  17. """Hypothesis is a library for writing unit tests which are parametrized by
  18. some source of data.
  19. It verifies your code against a wide range of input and minimizes any
  20. failing examples it finds.
  21. """
  22. from hypothesis._settings import settings, Verbosity, Phase, HealthCheck, \
  23. unlimited
  24. from hypothesis.version import __version_info__, __version__
  25. from hypothesis.control import assume, note, reject, event
  26. from hypothesis.core import given, find, example, seed, reproduce_failure, \
  27. PrintSettings
  28. from hypothesis.utils.conventions import infer
  29. __all__ = [
  30. 'settings',
  31. 'Verbosity',
  32. 'HealthCheck',
  33. 'Phase',
  34. 'PrintSettings',
  35. 'assume',
  36. 'reject',
  37. 'seed',
  38. 'given',
  39. 'unlimited',
  40. 'reproduce_failure',
  41. 'find',
  42. 'example',
  43. 'note',
  44. 'event',
  45. 'infer',
  46. '__version__',
  47. '__version_info__',
  48. ]