Skip to main content

unittest_sandbox provides a @sandbox decorator which ensures unit test methods do not make any web requests during test execution.

Project description

unittest_sandbox provides a decorator which can be used to prevent unit test methods from contacting the internet. Decorating a unittest with @sandbox monkey patches the socket module to ensure that no web requests reach the outside world.

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

unittest_sandbox-1.0.0.tar.gz (1.9 kB view hashes)

Uploaded Source

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