Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Mocking library for Python inspired by Google Mock C++ mocking toolkit

Project description

Mocking library for Python inspired by Google Mock C++ mocking toolkit.

About

The purpose of using Mockify is the same as for Python’s unittest.mock module - to mimic behaviour of things during testing. But Mockify uses a different approach to do that.

Mockify does not have multiple assert_called_* methods that are executed to check if a method was called. Instead, it uses expect_call method to record expectations on mocks before they are called, and after unit under test is executed, mocks are checked if all recorded expectations are satisfied using one assert_satisfied assertion method.

Documentation

Newest documentation can be found at https://mockify.readthedocs.org/.

Source

Source code is available at https://gitlab.com/zef1r/mockify/.

License

This software is released under the terms of the MIT license.

See LICENSE.txt for details.

Project details


Download files

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

Files for mockify, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size mockify-0.5.0-py3-none-any.whl (23.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size mockify-0.5.0.tar.gz (15.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page