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)