backports.unittest_mock
Project description
backports.unittest_mock
Provides a function “install()” which makes the “mock” module available as “unittest.mock” on Python 3.2 and earlier.
Also advertises a pytest plugin which configures unittest.mock automatically.
Usage
If using pytest, simply require this package in your test environment, and unittest.mock will be available.
Otherwise, it must be invoked imperatively:
import backports.unittest_mock backports.unittest_mock.install() import unittest.mock
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
Close
Hashes for backports.unittest_mock-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6751dfaaf60a361de748b7396e3664eff123fe6c5e1a3f57fb107f667ed5608b |
|
MD5 | 20725aee12bf7a7572916352cf8851e2 |
|
BLAKE2b-256 | 90440ba4b6c194392510303c1f6ce784ce6797dd2fe005a76724d694f123f40d |