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

updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/asottile/blacken-docs: 1.16.0 → 1.18.0](https://github.com/asottile/blacken-docs/compare/1.16.0...1.18.0) - [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/7.0.0...7.1.0) - [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/23.12.1...24.4.2)

We use hamcrest in [screenpy](https://github.com/ScreenPyHQ). Something I would like to request is; making the output of assertion errors a little more user friendly. When using `string_contains` the output is not...

good first issue

Currently, the `Matcher` class has a type arg `T` as it should, but `Matcher`s are currently invariant with respect to `T`. However, I think it's quite clear that the following...

help wanted

Just to save anyone else investigating - https://github.com/twisted/towncrier/issues/528 is causing our build to fail.

not-a-defect
build

Currently, PyCharm highlights all usages of assert_that with sequence matchers due to unexpected type warnings. Is it possible to include an overloaded version of assert_that specifically designed for such cases?...

help wanted

Numerous aliases which were deprecated in NumPy 1.20.0 have finally been removed in NumPy 1.24.0 (see the [NumPy 1.24 Release Notes](https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations)). This causes the following tests to fail with NumPy...

raises(Error, "message with (parens)") no longer fails with an exact match ```` def raise_error(): raise AssertionError("Message with (parens)") assert_that(calling(raise_error), raises(AssertionError, "Message with (parens)") ``` will fail with `Correct assertion type...

``` def raise_error(): raise AssertionError("Message with (parens)") assert_that(calling(raise_error), raises(AssertionError, "Message with (parens)") ``` will fail with `Correct assertion type raised, but the expected pattern ("Message with (parens)") not found. Exception...

updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/asottile/blacken-docs: 1.18.0 → 1.19.0](https://github.com/asottile/blacken-docs/compare/1.18.0...1.19.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.7.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.8...v0.7.0)