PyHamcrest icon indicating copy to clipboard operation
PyHamcrest copied to clipboard

Hamcrest matchers for Python

Results 29 PyHamcrest issues
Sort by recently updated
recently updated
newest added

Hi there, I am new to Hamcrest and would like to know if there is an example to override the standard object comparison equal operator. I basically have to change...

version 2.0.2 ``` assert_that(['a',4], contains_inanyorder(*[greater_than(0), 'a'])) Expected: a sequence over [a value greater than , 'a'] in any order but: was ``` I would expect is to pass as the...

matcher bug
good first issue

Hello! Always been a great fan of this library! **Disclaimer: I'm new to mypy, so this might just be me lacking understadings, if so, i'm sorry i'll close this.** I'm...

WIP: Based on raises matcher but adapted to deal with future objects. Example of use ``` assert_that( await resolved(raise_exception()), future_exception(AssertionError)) ) ``` The resolved helper is used to create resolved...

Alternative for #148 and #147 that more specifically targets usage patterns that are highly likely to be mistakes.

Related: #143 - Using `global`. (help!) - The locales files are in `src/hamcrest/core/locale.py` for now. What to do with them? More commits will follow. Expected behavior: > If locale is...

I didnt find this issue mentioned anywhere, so I'm sorry if i missed it, or if i'm doing something wrong. When creating tests for collection objects I'm getting plenty of...

```console + /usr/bin/python3 setup.py build_sphinx -b man running build_sphinx Running Sphinx v4.0.2 making output directory... done loading intersphinx inventory from http://docs.python.org/2.6/objects.inv... intersphinx inventory has moved: http://docs.python.org/2.6/objects.inv -> https://docs.python.org/2.6/objects.inv building [mo]:...

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-hamcrest-2.0.2-2.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-hamcrest-2.0.2-2.1.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/python3 -Bm pytest -ra =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 rootdir: /home/tkloczko/rpmbuild/BUILD/PyHamcrest-2.0.2 plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1,...