nodev-io / pytest-nodev

Test-driven source code search for Python.
http://pytest-nodev.readthedocs.io
MIT License
27 stars 8 forks source link

Running without OS isolation can be very dangerous #16

Open alexamici opened 8 years ago

alexamici commented 8 years ago

The README says:

A lot of functions called with the wrong set of arguments may have unexpected consequences ranging from slightly annoying, think os.mkdir('false'), to utterly catastrophic, think shutil.rmtree('/', True). Serious use of pytest-wish require operating-system level isolation, e.g. a dedicated user or even better a dedicated container.

Is there anything we can done to help users properly sandbox pytest-nodev, without adding tons of complexity?

Ideas:

Adding full support for creating containers and running test inside them is the definitive answer, but it would need its own package.