Thread safe wrapper around unittest.mock
Project description
tsmock
Thread safe pything mocking wrapper around unittest.mock
Either monkey patch all mock classes:
from tsmock import thread_safe_mocks
thread_safe_mocks()
Or use a single mock class as needed:
from tsmock import MagicMock
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
tsmock-0.1.2.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsmock-0.1.2.tar.gz.
File metadata
- Download URL: tsmock-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2df910a62e1b989a44dbdff397683649ebed71927cb708c7301ff2ab435828f2
|
|
| MD5 |
4f9a935b600070b8dc810564d2b5a01c
|
|
| BLAKE2b-256 |
4f36998f53d8b149b53898f03099bd4b32ac0a01330dd69658715814ace8b3ab
|
File details
Details for the file tsmock-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tsmock-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6067588cc1d7b9b67fa4abb74d9ec99da6a0eff1c4ae6bab389308c3c51ec40
|
|
| MD5 |
5b722f62ae3361823bb39dc49dddd11d
|
|
| BLAKE2b-256 |
fbee6272e7cff623a4e67b23de4ad37e05b20d79cd6b198cf8c1b6df6cd4a00d
|