Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

tsmock-0.1.2-py3-none-any.whl (1.8 kB view hashes)

Uploaded Python 3

Supported by

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