Skip to main content

Fuzzy Mock objects for testing

Project description

https://badge.fury.io/py/equals.svg https://readthedocs.org/projects/equals/badge/?version=latest https://coveralls.io/repos/github/smartfastlabs/equals/badge.svg?branch=master

tl;dr Equals is a stricter version of Mock.Any.

Equals allows you to assert certain equality constraints between python objects during testing. There are times where we don’t want to assert absolute equality, e.g. we need to ensure two lists have the same elements, but don’t care about order. This was designed specifically for usage with Mock and dobles.

Documentation

Documentation is available at http://equals.readthedocs.org/en/latest/.

Installation:

>> pip install equals

Development

Source code is available at https://github.com/smartfastlabs/equals.

To install the dependencies on a fresh clone of the repository, run make bootstrap.

To run the test suite, run make test.

To build the documentation locally, run make docs.

License

MIT: http://opensource.org/licenses/MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

equals-3.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

equals-3.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file equals-3.1.0.tar.gz.

File metadata

  • Download URL: equals-3.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

File hashes

Hashes for equals-3.1.0.tar.gz
Algorithm Hash digest
SHA256 ba6747b2f124a31034e178f2c314f2d7642897459c800f901a6cb67ac0f006a7
MD5 0cea4f204bae2f1af072d5855fd6bf6c
BLAKE2b-256 4b2d23e6c15d869f59f4e4f6dfda6d2a77db037fd7c17355d2bbaa06c4cb0dcf

See more details on using hashes here.

File details

Details for the file equals-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: equals-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0

File hashes

Hashes for equals-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90449216d75a8660da66460403b2890527c23ac0499a5430f40ddb78c52258c5
MD5 59bdcdf9c76ed7ded4e957b829a4500d
BLAKE2b-256 ea8a6810812f9ee1db97854d0eb4603803b6ca5aa06d4bb941fc11768a16643f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page