Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 792 Bytes

File metadata and controls

28 lines (20 loc) · 792 Bytes

testisolation (Python)

Uncompromising test isolation: your tests structurally cannot touch your real files, secrets, or git identity -- First-class support for Go, Python with pytest, and TypeScript with Node

This is the pytest plugin.

pip install testisolation

Installing it is adoption: the plugin loads through its pytest11 entry point and refuses to run a suite that has not declared its safety stance.

[tool.pytest.ini_options]
testisolation_sockets = "deny"
testisolation_socket_allowlist = []
testisolation_unix_socket_allowlist = []
testisolation_loopback = "deny"
testisolation_sandbox_required = "false"

See the repository README for the full key reference and what each guard does.

License

MIT