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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mockify-0.3.1.tar.gz
.
File metadata
- Download URL: mockify-0.3.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c74d23c7d196fb5ace7a374a0e97f185224de4f6e62caff7100bedcba8ebec8 |
|
MD5 | c37b130a0f6a6f2f87d0c57d374d68df |
|
BLAKE2b-256 | 1291edc5049ef59d5da59caf3573a1ab83ad0bb5e5afa3b4051710035e7cf90c |
Provenance
File details
Details for the file mockify-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: mockify-0.3.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1bf22c2c05ae34ad2db5d065d2a9c93dd4de8593bc9748937dffb3bad014487 |
|
MD5 | 36ddf6bdee8883868ae5fe2832107c0f |
|
BLAKE2b-256 | e7bf931269257f8323a3affc8a68f4fbcb41fa45430b8e1672ebbebc664102a6 |