Package Info

python-pyshould


Should style asserts


Development/Languages/Python

PyShould is a Python DSL allowing to write expectations or assertions in almost natural language. The goal is to offer an expressive yet readable syntax to define the expectations in detail.

Under the hood it uses the PyHamcrest library of matchers to build complex matching predicates and great explanations when there is a mismatch.

Its primary use case is in unit testing, replacing the need for Python's native assertX methods. Its use is completely transparent to the unit testing runner used, since mismatches are reported using the standard AssertionError.


License: MIT
URL: https://github.com/drslump/pyshould

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.7.1-bp151.1.1 info GA Release 2019-06-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyshould
  • python3-pyshould
0.7.1-bp152.3.16 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyshould
  • python3-pyshould
0.7.1-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pyshould
  • python3-pyshould
0.7.1-bp154.1.23 info GA Release 2022-05-09 15 SP4)
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pyshould